Results 1 to 8 of 8

Thread: VB.NET: Format Date......[Resolved]

Threaded View

  1. #8

    Thread Starter
    Addicted Member toytoy's Avatar
    Join Date
    Jul 2004
    Posts
    230

    Re: VB.NET: Format Date

    I use these few lines to solve it...
    VB Code:
    1. Dim niEuro As New System.Globalization.DateTimeFormatInfo
    2. Dim dd, mm, yyyy, pa As String
    3.  
    4. dd = nod2.Attributes("day").Value
    5. mm = nod2.Attributes("month").Value
    6. yyyy = nod2.Attributes("year").Value
    7. pa = dd & "/" & mm & "/" & yyyy
    8. niEuro.ShortDatePattern = "dd/MM/yyyy"
    9. Dim dataEuro As Date = Date.Parse(pa, niEuro)
    10. MessageBox.Show(dataEuro)

    but nemaroller, your solution is still the best..

    Last edited by toytoy; Jan 28th, 2005 at 01:05 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width