Class DateParser


  • public class DateParser
    extends Object
    NOTE: This code has been taken from w3.org, and modified slightly to handle timezones of the form [-+]DDDD, and also to fix a bug in the application of time zone to the parsed date. Date parser for ISO 8601 format http://www.w3.org/TR/1998/NOTE-datetime-19980827
    • Constructor Detail

      • DateParser

        public DateParser()
    • Method Detail

      • getIsoDate

        public static String getIsoDate​(Date date)
        Generate a ISO 8601 date
        Parameters:
        date - a Date instance
        Returns:
        a string representing the date in the ISO 8601 format