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
  • 271
  • 3
  • 16

1 Answers1

2

You can do:

System.DateTime.Now.ToString("MMddyyyyHHmmss");
Stuart
  • 6,630
  • 2
  • 24
  • 40