You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Derek C. Ashmore (JIRA)" <ji...@apache.org> on 2016/08/21 14:27:20 UTC

[jira] [Closed] (LANG-1246) Enhancement to add utility to convert Date to XMLGregorianCalendar

     [ https://issues.apache.org/jira/browse/LANG-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Derek C. Ashmore closed LANG-1246.
----------------------------------
    Resolution: Won't Fix

Deemed not appropriate

> Enhancement to add utility to convert Date to XMLGregorianCalendar
> ------------------------------------------------------------------
>
>                 Key: LANG-1246
>                 URL: https://issues.apache.org/jira/browse/LANG-1246
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.time.*
>            Reporter: Derek C. Ashmore
>            Priority: Minor
>
> I've frequently had a need to convert a Date (java.util) into a XMLGregorianCalendar (javax.xml.datatype).  This need frequently comes up when coding SOAP Web Service clients.
> Specifically, I propose a minor addition to DateUtils as follows:
> public static XMLGregorianCalendar toXMLGregorianCalendar (final Date date)
> XMLGregorianCalendar has the ability to convert itself to a Date, but not the other way around.
> Rather than copy a utility to do this from project to project, I'd prefer the utility be centralized.
> A pull request is forthcoming.  Thanks for looking at this.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)