0
How to Convert string to date?
I have value of strings 31121990, how to convert that value to Date dd/MM/yyyy or dd MMM yyyy
3 Respuestas
+ 3
You can use
Convert.ToDateTime (date);
which returns Datetime object.
0
or you can use string.format and the letter at the end of the line
0
string date=31121990;
DateTime dt=Convert.ToDateTime (date);