DuAEF.DuJS.Date

Date related methods

Methods

static getMonth(string) → {int}

Gets the month number from a literal name
Parameters:
Name Type Description
string string The month name
Returns:
int - The month number

static getMonthName(string) → {string}

Gets the month name from an index
Parameters:
Name Type Description
string int The month index
Returns:
string - The month name

static toString(date) → {string}

Returns a pretty formatted string representing the date
Parameters:
Name Type Description
date Date The date
Returns:
string - The date