Re: Freemarker Date Format issue
FOX427 <[email protected]> Mon, 2 Mar 2015 12:51:16 -0800 (PST)
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Ok, so I found solution, here is what I did:
<#assign starting_point = item.pubDate?index_of(",")>
<#assign date="${item.pubDate?substring(starting_point + 1)}" />
${date?datetime("dd MMM yyyy hh:mm:ss z")?date}<br>
So now I am getting result as this: Mar 2, 2015.
I still have question, is there any way we can change value from Mar to
March?
--
View this message in context: http://freemarker.624813.n4.nabble.com/Freemarker-Date-Format-issue-tp4655381p4655382.html
Sent from the freemarker-user mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/