Feature Requests item #1090168, was opened at 2004-12-22 19:35
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=366035&aid=1090168&group_id=16035

Category: None
Group: None
Status: Open
Priority: 5
Submitted By: David Thielen (davidthi808)
Assigned to: Nobody/Anonymous (nobody)
Summary: static helper method for xsd:DateTime

Initial Comment:
Hi;

I think having a static helper method that returns the 
datetime in the xsd format would be useful. Here is the 
code:

SimpleDateFormat fmt = new SimpleDateFormat("yyyy-
MM-dd'T'HH:mm:'00Z'");
GregorianCalendar cal = new GregorianCalendar();
cal.add(Calendar.MILLISECOND, - TimeZone.getDefault
().getRawOffset());
return fmt.format(cal.getTime());

thanks - dave

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=366035&aid=1090168&group_id=16035


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
dom4j-dev mailing list
dom4j-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to