Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] Format date in acceleo(Need to know how to format a date)
[Acceleo] Format date in acceleo [message #1385880] Wed, 11 June 2014 18:47 Go to next message
Eclipse UserFriend
So I have a template which outputs a date just through something like [dateInHere/]

But I need a specific date format and I can't seem to find the Acceleo equivalent of a SimpleDateFormat to let me specify the output pattern.

Does Acceleo have a method for formatting the output of dates / a specific date? If not this must be a problem others have come across and there must be a fairly good solution?

Thanks!

[Updated on: Wed, 11 June 2014 18:49] by Moderator

Re: Format date in acceleo [message #1385901 is a reply to message #1385880] Thu, 12 June 2014 04:19 Go to previous message
Eclipse UserFriend
Hi

Use the ability to "invoke(...)" external Java code.

Regards

Ed Willink


On 11/06/2014 23:47, Phillip Drew wrote:
> So I have a template which outputs a date just through something like
> [dateInHere/]
>
> But I need a specific date format and I can't seem to find the Acceleo
> equivalent of a SimpleDateFormat to let me specify the output pattern.
>
> Does Acceleo have a method for formatting the output of dates / a
> specific date? If not this must be a problem others have come across
> and there must be a fairly good solution?
>
> Thanks!
Previous Topic: [Acceleo] How to get types for xcore meta-model
Next Topic:[Acceleo] unresolved proxy
Goto Forum:
  


Current Time: Thu Jun 12 17:54:09 EDT 2025

Powered by FUDForum. Page generated in 0.03258 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top