datetime convertion

  • Thread starter Thread starter juli
  • Start date Start date
Juli,

This should do the job
DateTime dta = Convert.ToDateTime(dt1,null);

dt1 should be in a format as is given in a string confirming the language
and regional settings of the computer, what is mostly standard installed at
your country formats by installation.

I hope this helps?

Cor
 
Try DateTime.Parse() or DateTime.ParseExact()

How can I convert string into a datetime? Thanks!
 
Back
Top