Re: [FreeMarker-user] Facing problem with datetime Built-In
Generates text that depends on changing data (like dynamic HTML).
Brought to you by:
revusky
From: Daniel D. <dd...@fr...> - 2016-06-02 18:50:27
|
I can't think of any FreeMarker mechanism that could cause that, so certainly the string is already ":"-ed before it reaches FreeMarker. BTW, where did you find the fre...@li... mail address? This list was replaced by de...@fr.... Is it still there on some well visible place? Is it still there Thursday, June 2, 2016, 1:38:04 PM, Rohit Koushal wrote: > Hello everyone, > > I am facing one problem with date string when used with datetime > built-in. Below is the syntax that I am using : > > ${parameters.minDate?datetime("yyyy-MM-dd HH:mm:ss")} > > and getting error message like : > > FreeMarker template error: The string doesn't match the expected > date/time/date-time format. The string to parse was: "2016-05-21 > 18:15:22.0". The expected format was: "yyyy-MM-dd > HH:mm:ss". The nested reason given follows: Unparseable date: > "2016-05-21 18:15:22.0" > > From the error message it look like date colons(:) got replaced > with ":". Does anyone point me what I am doing wrong. > > ----------------- > Thanks and Regards > Rohit Koushal -- Thanks, Daniel Dekany |