Problem about getting the time format

  • Thread starter Thread starter Ray
  • Start date Start date
R

Ray

Dear all,
Now, I can get the time using the code "DateTime.Now.ToString("hhmm")".
If the time is 18:00, the result I get will be "0600". How can I get the
result "1800"? Please help.
Thanks,
Ray
 
Ray,

Probably by telling that you want minutes instead of months

mm is two character month
MM is two charachter minutes

:-)

I hope this helps?

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