Facing problem with datetime Built-In

Rohit Koushal <[email protected]> Thu, 2 Jun 2016 17:08:04 +0530
Newsgroups gmane.comp.web.freemarker.user
Message-ID <CALa9wBiFnLn+PXJHtfSDHapZ4Rz_a2T8h1XwAVOU4ggKum49qQ@mail.gmail.com>
--===============3705924841378555738==
Content-Type: multipart/alternative; boundary=001a113cf8f213d78c05344a0aab

--001a113cf8f213d78c05344a0aab
Content-Type: text/plain; charset=UTF-8

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&#x3a;15&#x3a;22.0". The expected format was: "yyyy-MM-dd HH:mm:ss". The
nested reason given follows: Unparseable date: "2016-05-21
18&#x3a;15&#x3a;22.0"

>From the error message it look like date colons(:) got replaced with "&#x3a;".
Does anyone point me what I am doing wrong.

-----------------
Thanks and Regards
Rohit Koushal

--001a113cf8f213d78c05344a0aab
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hello everyone,<div><br></div><div>I am facing one problem=
 with date string when used with=C2=A0datetime=C2=A0built-in. Below is the =
syntax that I am =C2=A0using :</div><div><br></div><div><font color=3D"#000=
0ff">${parameters.minDate?datetime(&quot;yyyy-MM-dd HH:mm:ss&quot;)}</font>=
</div><div><br></div><div>and getting=C2=A0error=C2=A0message like =C2=A0:=
=C2=A0</div><div><br></div><div><div><font color=3D"#ff0000"><span style=3D=
"font-size:13px;line-height:16px">FreeMarker template error: The string doe=
sn&#39;t match the expected date/time/date-time format. The string to parse=
 was: &quot;2016-05-21 18&amp;#x3a;15&amp;#x3a;22.0&quot;. The expected for=
mat was: &quot;yyyy-MM-dd HH:mm:ss&quot;. The nested reason given follows: =
Unparseable date: &quot;2016-05-21 18&amp;#x3a;15&amp;#x3a;22.0&quot;=C2=A0=
</span><br></font></div><div><span style=3D"color:rgb(38,50,56);font-size:1=
3px;line-height:16px"><br></span></div><div>From the error message it look =
like date colons(:) got replaced with &quot;<span style=3D"color:rgb(255,0,=
0);font-size:13px;line-height:16px">&amp;#x3a;</span>&quot;. Does anyone po=
int me what I am doing=C2=A0wrong.</div><div>=C2=A0</div></div><div>-------=
----------</div><div>Thanks and Regards</div><div>Rohit Koushal</div></div>

--001a113cf8f213d78c05344a0aab--


--===============3705924841378555738==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
--===============3705924841378555738==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user

--===============3705924841378555738==--