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
Asked
Active
Viewed 821 times
1
-
2`DateTime.Now.ToString("ddMMyyyyHHmmss")` – Fabio Aug 28 '17 at 11:11
-
1Have you googled formatting dates using C#? – Andrew Truckle Aug 28 '17 at 11:11
-
@Fabio. This should not be comment. Flesh it out into an answer. – Andrew Truckle Aug 28 '17 at 11:12
-
7Possible duplicate of [C# DateTime to "YYYYMMDDHHMMSS" format](https://stackoverflow.com/questions/3025361/c-sharp-datetime-to-yyyymmddhhmmss-format) – Fabio Aug 28 '17 at 11:13
-
`DateTime.Now.ToString("MMddyyyyHHmmss")` – Sergey Kalinichenko Aug 28 '17 at 11:13
-
1@AndrewTruckle - it very clearly a duplicated question - no need to repeat – Fabio Aug 28 '17 at 11:14