You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
In Slovenia date format is "d. M. yyyy" (Example: "13. 4. 2022") and the problem is that this dateParser can't parse it:
Exception in thread "main" java.time.format.DateTimeParseException: Text 12. 4. 2022 cannot parse at 0
at com.github.sisyphsu.dateparser.DateParser.error(DateParser.java:401)
at com.github.sisyphsu.dateparser.DateParser.error(DateParser.java:397)
at com.github.sisyphsu.dateparser.DateParser.parse(DateParser.java:131)
at com.github.sisyphsu.dateparser.DateParser.parseDate(DateParser.java:67)
at com.github.sisyphsu.dateparser.DateParserUtils.parseDate(DateParserUtils.java:29)
at si.zzi.eforms.wp.utils.DateJSFConverter.main(DateJSFConverter.java:51)
Can you help? regards
The text was updated successfully, but these errors were encountered:
It looks like Slovenia data format is d.M.yyyy but in your example you use similar format but with extra space "d. M. yyyy".
Are you sure that this is official format with spaces? For me it looks like a custom format, so you have to use a custom parser for this (example: SimpleDateFormat)
Without spaces it is parsed without error.
Ok, I can do this with a custom parser, but unfortunately the official
Slovenian date format is with extra spaces!
[image: image.png]
regards Haris
V V pon., 4. apr. 2022 ob 21:57 je oseba andriy-samson <
***@***.***> napisala:
It looks like Slovenia data format is d.M.yyyy but in your example you use
similar format but with extra space "d. M. yyyy".
Are you sure that this is official format with spaces? For me it looks
like a custom format, so you have to use a custom parser for this (example:
SimpleDateFormat)
Without spaces it is parsed without error.
—
Reply to this email directly, view it on GitHub
<#26 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AICMDYRGQBVEMPWKVLQYIADVDNCTJANCNFSM5SOVIJUA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
Hi,
In Slovenia date format is "d. M. yyyy" (Example: "13. 4. 2022") and the problem is that this dateParser can't parse it:
Exception in thread "main" java.time.format.DateTimeParseException: Text 12. 4. 2022 cannot parse at 0
at com.github.sisyphsu.dateparser.DateParser.error(DateParser.java:401)
at com.github.sisyphsu.dateparser.DateParser.error(DateParser.java:397)
at com.github.sisyphsu.dateparser.DateParser.parse(DateParser.java:131)
at com.github.sisyphsu.dateparser.DateParser.parseDate(DateParser.java:67)
at com.github.sisyphsu.dateparser.DateParserUtils.parseDate(DateParserUtils.java:29)
at si.zzi.eforms.wp.utils.DateJSFConverter.main(DateJSFConverter.java:51)
Can you help? regards
The text was updated successfully, but these errors were encountered: