Reputation: 297
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
Upvotes: 1
Views: 1058
Reputation: 6780
You can do:
System.DateTime.Now.ToString("MMddyyyyHHmmss");
Upvotes: 2