datetime convertion

C

Cor Ligthert

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
 
S

Shiva

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

How can I convert string into a datetime? Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top