From: Sven S. <sv...@sc...> - 2006-03-27 01:47:14
|
That's exactly what I looked for. Big Thanks! Sven Keats Kirsch wrote: > If you define the method as a function you can make it a bit shorter. > One way is to add this to your WebMacro.properties file: > > Functions.formatDate=org.webmacro.servlet.TextTool.formatDate > > Then you can drop the Text part, and use: > > $formatDate($createdAt, "dd.MM.yyyy, HH:mm") > > Other options would be to drop a date formatter into your context and > use that, or develop your own DateTool or something like that. You > could even create a custom date object with predefined formats. E.g., > > #bean $wmDate=WMDate initArgs=$createdAt > $wmDate.DATETIME1 > > Hope this helps. > > Keats |