Menu

#1 enhanced Date formatting

open
nobody
None
5
2007-11-12
2007-11-12
toby cabot
No

This patch adds a DateNodeListAdapter that improves the formatting of java.sql.Date and java.util.Date. It adds a <xsdDateTime> element that contains the date formatted in ISO 8601 format (always with the UTC timezone). This is easier to reformat than having to reassemble the date from Date's various member fields.

Discussion

  • toby cabot

    toby cabot - 2007-11-12

    Logged In: YES
    user_id=55510
    Originator: YES

    Forgot to mention: the unit tests for this patch assume that the fix for bug 1808993 has been applied.

     
  • toby cabot

    toby cabot - 2008-05-06

    patch to enhance date formatting

     
  • toby cabot

    toby cabot - 2008-05-06

    Logged In: YES
    user_id=55510
    Originator: YES

    File Added: dom-date-format-patch.txt

     
  • toby cabot

    toby cabot - 2008-05-06

    Logged In: YES
    user_id=55510
    Originator: YES

    I just uploaded a new version of the patch that always formats the milliseconds with 3 digits, e.g. 042 instead of 42.

     

Log in to post a comment.