Rust DateTime Formatting Examples With chrono
December 2023
Just a few date formats I like to use
```cargo
chrono = "0.4.38"
```
use *;
Output:
%Y-%m-%d %H:%M:%S | 2003-01-08 04:05:06
%Y-%m-%dT%H:%M:%S | 2003-01-08T04:05:06
%B %Y | January 2003
%b %Y | Jan 2003
%a. %B %-d - %-I:%M%p | Wed. January 8 - 4:05AM
All the specifiers are here:
end of line