Lenient Parsing of Date Time Strings

52 views
Skip to first unread message

Joseph Lorenzini

unread,
Feb 3, 2020, 9:29:10 PM2/3/20
to golang-nuts

Hi all,

In the java standard library, there is a lenient mode, where heuristics are used to take a potentially invalid string and convert it to a valid date time.


For example, a date like this 1983-02-00T00:00:00Z may turn into something like this 1983-01-31T00:00:00Z. Now obviously the standard time library doesn't support this and its perfectly understandable why. My question is whether there's a third party library that does something like this?

Thanks,
Joe
Reply all
Reply to author
Forward
0 new messages