vpetkovic
1/22/2020 - 1:45 PM

Date and Time Formats

This is self explanatory and the only reason this exist is to have it handly for very quick reference as it is slightly different than in other languages like for instance PHP where for intance minutes with leading zeros are represented as 'i' and not mm.

https://msdn.microsoft.com/library/zdtaw1bw.aspx

MM - Month with leading 0
M - Month without leading 0
dd - Day with leading 0
d - Day without leading 0
yyyy - 4 Digit year
yy - 2 Digit year
HH - Military Hour with leading 0
H - Military Hour without leading 0
hh - Hour with leading 0
h - Hour without leading 0
mm - Minute with leading 0
m - Minute without leading 0
ss - Second with leading 0
s - Second without leading 0