String to Date
ASP.NET
6
Posts
5
Posters
0
Views
1
Watching
-
-
it depends on the date format u accept from the user... i mean....what is the string u get from the user in txtDate.Text?? if it is of type say....July 24, 1983 then cDate(txtDate.Text) works fine.... check it out.....
mareers
I get Dat in dd/MM/yyyy format i-e 25/02/2007
-
I get Dat in dd/MM/yyyy format i-e 25/02/2007
Try System.DateTime.Parse(string s) for the format u have.
Koushik
-
Try System.DateTime.Parse(string s) for the format u have.
Koushik
Hiii, System.DateTime.Parse(string s), this going to work only if the input string format is "MM/dd/yyyy" so try to convert the input string to "MM/dd/yyyy"
-