user7336033
user7336033

Reputation: 297

How to get date in DateMonthYearHourMinuteSec in C# without slashes?

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

Answers (1)

Stuart
Stuart

Reputation: 6780

You can do:

System.DateTime.Now.ToString("MMddyyyyHHmmss");

Upvotes: 2

Related Questions