Click here to Skip to main content
15,894,017 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hey guys...i want to know how to change date format for example 3/23/2013 to be 23.3.2013
thanks
Posted
Comments
Maciej Los 25-Mar-13 3:48am    
Why do you want to replace "/" with "."?
Please, be more specific and provide more details.

1 solution

Use Format[^] function.

VB
Dim myDate As Date = Date.Now
Dim sDate As String = Format(myDate, "dd.MM.yyyy")

Console.WriteLine(sDate)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900