TestBox 1.1.0

testbox.testbox.system.core.util
Class DateUtils

railo-context.Component
        extended by testbox.testbox.system.core.util.DateUtils

public class DateUtils
extends railo-context.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

TestBox 1.1.0