What Every C# Dev Needs to Know About Dates

There’s a big difference in what a M, MM, MMM, and MMMM mean in a date format.

Also, you can say:

String.Format( "{0:yyyy-MM-dd hh:mm:ss}", DateTime.Now )

to convert a .Net date into a MySQL format date, without needing to pass a format string to the

DateTime.ToString()

method.

Discover more from Bitratchet

Subscribe now to keep reading and get access to the full archive.

Continue reading