how to convert the dd/mm/yyyy string date format to mm/dd/yyyy format
ASP.NET
4
Posts
4
Posters
0
Views
1
Watching
-
i am having a text box where i entered the date as 14/01/2008 now i want this string date format to convert into mm/dd/yyyy format for validation
-
i am having a text box where i entered the date as 14/01/2008 now i want this string date format to convert into mm/dd/yyyy format for validation
DateTime s = DateTime.ParseExact("14/01/2008", "dd/MM/yyyy", null); I believe there is also a corresponding js function as well.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway -
i am having a text box where i entered the date as 14/01/2008 now i want this string date format to convert into mm/dd/yyyy format for validation