Formatting datetime

  • Thread starter Thread starter Joe
  • Start date Start date
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))
 
Back
Top