VB.NET - CDate to convert a valid date to MM/DD/YYYY format



using CDate to convert valid date to MM/DD/YYYY

Dim todayDate As Date = "December 25,2009"
Dim dtDate As Date = "12#26#2009"
        'Response.Write(CDate(todayDate))
        'Response.Write(CDate(dtDate))
        ' Output :12/25/09  12/26/2009
        

Share |

 Cant find the page you are looking for?
 Help us to improve by adding the content that you are looking for.
 Leave a feedback
 We look forward to hear your comments and feedback.