ColdBox Platform v3.8.0

coldbox.system.core.util
Class DateUtils

WEB-INF.cftags.component
        extended by coldbox.system.core.util.DateUtils
Direct Known Subclasses:
DateUtils

public class DateUtils
extends WEB-INF.cftags.component

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

ColdBox Platform v3.8.0