Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 22:47 Go to next message
Phillip Drew is currently offline Phillip DrewFriend
Messages: 77
Registered: October 2012
Member
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 22:49]

Report message to a moderator

Re: Format date in acceleo [message #1385901 is a reply to message #1385880] Thu, 12 June 2014 08:19 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7292
Registered: July 2009
Senior Member
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: Fri Oct 22 20:16:39 GMT 2021

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

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

Back to the top