Formatting datetime

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

I need to format the DateTime into such format "yyyymmdd HH:mm"

how do you do that?
 
Joe said:
I need to format the DateTime into such format "yyyymmdd HH:mm"

how do you do that?

Console.WriteLine(String.Format("{0:yyyyMMdd HH:mm}", DateTime.Now))
 

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

Similar Threads


Back
Top