Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 153445 - Alternate ${date} format in templates
Summary: Alternate ${date} format in templates
Status: RESOLVED DUPLICATE of bug 75981
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-10 11:14 EDT by Eric Kolotyluk CLA
Modified: 2006-08-15 03:45 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Kolotyluk CLA 2006-08-10 11:14:50 EDT
Currently the date format when subtituting the ${date} variable in code templates is like "Aug 10, 2006" - It would be nice if there were some way to control the format of the date, for example euopean style "2006.08.10" - Our code commenting conventions use the latter style, so we always have to convert after the template is expanded.
Comment 1 Markus Keller CLA 2006-08-14 15:00:13 EDT
I'm for hardcoding ISO 8601: YYYY-MM-DD ;-)

An alternative could be that ${date} accepts an argument, e.g. ${d:date(format)}, where format is a pattern for SimpleDateFormat.
Comment 2 Dani Megert CLA 2006-08-15 03:45:28 EDT

*** This bug has been marked as a duplicate of 75981 ***