Short time

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

I can convert time into string using ToShortTimeString. How can I convert a
strings like "01:00 pm" or "13:00" to time?

Thanks

Regards
 
Use "DateTime.Parse"

Every data type will have a Parse method that will help you convert a string
to that DataType

VJ
 
Hi John,

In the sample about binding you find the conversion to a single date, have
yourself a look for the other maskers.

Cor
 

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

Back
Top