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: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
--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("yyyy-MM-dd HH:mm:ss")}</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'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 for=
mat was: "yyyy-MM-dd HH:mm:ss". The nested reason given follows: =
Unparseable date: "2016-05-21 18&#x3a;15&#x3a;22.0"=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 "<span style=3D"color:rgb(255,0,=
0);font-size:13px;line-height:16px">&#x3a;</span>". 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==--