coldbox.system.core.util

Class DateUtils

WEB-INF.cftags.component
        extended by coldbox.system.core.util.DateUtils
Class Attributes:
  • output : false
  •  
    Direct Known Subclasses:
    DateUtils

    This CFC is a utility that helps you deal with date representations for specific date-time formats

    Method Summary
    string parseISO8601(string datetime)
         Parse a UTC or iso8601 date to a normal CF datetime object: http://en.wikipedia.org/wiki/ISO_8601, usually follows the YYYY-MM-DDThh:mm:ss format

    Parameters:
    datetime - The datetime string to convert

    parseRFC822

    public string parseRFC822(string datetime)

    Parse RFC822 dates, returns empty string if not a valid date. More information at http://www.faqs.org/rfcs/rfc822.html. Example: Wed, 02 Oct 2002 08:00:00 EST

    Parameters:
    datetime - The datetime string to convert