[
https://issues.apache.org/jira/browse/ODFTOOLKIT-157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13460168#comment-13460168
]
DaLi Liu commented on ODFTOOLKIT-157:
-------------------------------------
Verified status of this issue
3.maybe need to be fixed, leave to open
> Formatting a date according to an OdfNumberDateStyle
> ----------------------------------------------------
>
> Key: ODFTOOLKIT-157
> URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-157
> Project: ODF Toolkit
> Issue Type: Improvement
> Components: java
> Affects Versions: 0.8.6
> Environment: Operating System: All
> Platform: PC
> Reporter: pallart
> Assignee: Ying Chun Guo
> Priority: Minor
> Fix For: --
>
> Attachments:
> ASF.LICENSE.NOT.GRANTED--patch-OdfNumberDateStyle-formatOut.diff
>
>
> Created an attachment (id=355)
> Diff file for the method OdfNumberDateStyle.getFormatOut.
> Hi,
> the OdfNumberDateStyle class has a method getFormat() which returns a string
> which can be used to parse a date according to its specifications.
> I needed exactly the reverse feature: a method which return a string which
> will allow to format a date according to the specifications. I've written the
> getFormatOut() method which does that.
> Typical usage:
> OdfNumberDateStyle nds = ...
> Date aDate = ...
> String formatOut = nds.getFormatOut();
> String formattedDate = String.format(formatOut, aDate);
> It's the first time I uploaded a patch. I hope it is right.
> If you like it, I will upload do the same for OdfNumberCurrencyStyle and
> others.
> Regards,
> Philippe.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira