provide a date2calendar convenience method
------------------------------------------

                 Key: LANG-632
                 URL: https://issues.apache.org/jira/browse/LANG-632
             Project: Commons Lang
          Issue Type: Improvement
          Components: lang.time.*
    Affects Versions: 2.5, 2.4, 2.3, 2.2, 2.1, 2.0, 1.0.1, 1.0, 3.0, 3.1, 2.x
            Reporter: Sebastian Dietrich
            Priority: Minor


please provide a date2calendar conversion convenience method like:

        public static Calendar date2Calendar(Date date) {
                Calendar date2Calendar = Calendar.getInstance();
                date2Calendar.setTime(date);
                return date2Calendar;
        }

This is especially useful in constructors where super() must be the first call, 
or whenever people want to reduce reoccurring code

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to