1

I need to get date like this: 08242017175011 Without space or slashes. May I please know how to get date like above in C#? Thanks

user7336033
  • 267
  • 2
  • 13

1 Answers1

2

You can do:

System.DateTime.Now.ToString("MMddyyyyHHmmss");
Stuart
  • 6,509
  • 2
  • 23
  • 38