Some strftime implementations support non-zero padded numbers. For example, in Python >>> from datetime import datetime >>> datetime.strftime(datetime.now(), '%-d') '1' This is documented in [glibc's strftime](http://man7.org/linux/man-pages/man3/strftime.3.html#NOTES). Windows has its own set of codes which use `#` instead of `-`: https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/strftime-wcsftime-strftime-l-wcsftime-l?redirectedfrom=MSDN&view=vs-2019 Another reference: https://strftime.org/#platforms
Some strftime implementations support non-zero padded numbers.
For example, in Python
This is documented in glibc's strftime.
Windows has its own set of codes which use
#instead of-:https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/strftime-wcsftime-strftime-l-wcsftime-l?redirectedfrom=MSDN&view=vs-2019
Another reference: https://strftime.org/#platforms