-
Couldn't load subscription status.
- Fork 29
Open
Description
When trying to parse a string 'Feb 2019', using
Timeliness.parse('Feb 2019', format: 'mmm yyyy')
it returns nil, if the current date is something that does not exist.
For example I was trying to parse above Feb 2019 string on 29th day of July, and parsing it apparently fails as there is no 29th day in february 2019.
Same issue might happen when trying to parse lets say 'April yyyy' during 31st day of some month.
Could the 'mmm yyyy' format parsing default to first day of the month instead of returning nil on these rare cases?
Metadata
Metadata
Assignees
Labels
No labels