Parsing a date to a specified format

bloukewer

Well-known member
Joined
Jul 2, 2004
Messages
88
Programming Experience
3-5
Im having some trouble parsing a date to a required format.

I am aware of the Date.ParseExact() method, but I am not sure how touse it. To be more precise, I am not familiar with the parametertypes required by the method.

The format I want to parse the date/string into is: dd/mm/yyyy

Any help would, as always, be appreciated.
 
suddenelfilio said:
or Format(date, "dd/MM/yyyy")

that does work for up to vb.net 2003 i'm not sure but i dont think they're going to include the Format function in vb.net 2005 and higher, the ToString("dd/mm/yyyy") is the replacement and should be used in all .net applications
 
Back
Top