Problems parsing some dates

0
Hey I'm having some minor issues with parsing several dates. For example: parseDateTime('01-Oct-2019','dd-MMM-yyyy')  Results in:  java.text.ParseException: Unparseable date: "01-Oct-2019"   I'm thinking it's the 'Oct' thats causing the issue because dates like '01-Jan-2019' get parsed just fine.   Thanks in advance
asked
2 answers
1

Hi Jonas,

This is most likely caused by your locale settings. Is it possible to use a numerical value for month?

parseDateTime('01-10-2019','dd-MM-yyyy') 

 

Grt. Arjan

 

 

answered
0

Hi Jonas,

Arjan is right: parseDateTime('01-Okt-2019','dd-MM-yyyy') probably will work.

answered