globalgov / messydates

R package for Extended Date/Time Format (EDTF)
https://globalgov.github.io/messydates
Other
15 stars 1 forks source link

Add zero padding for month, day or year #19

Closed henriquesposito closed 3 years ago

henriquesposito commented 3 years ago

Some dates seem not to be padded with 0s as expected when transformed to messydates. Sometimes the 0 padding is added but not in consistent ways (i.e. reverse order).

E.g. 1871-1-18 instead of 1871-01-18 or 1816-1-1-instead of 1816-01-01.