Module: date

Module: date

Source:

Methods

<inner> daysInMonth(month, year) → {Number}

Returns the number of days in the month and year in parameters
Parameters:
Name Type Description
month Number from 0 to 11
year Number
Source:
Returns:
28, 29, 30 or 31
Type
Number

<inner> isLeapYear(year) → {Boolean}

Returns if the year in parameter is a leap year
Parameters:
Name Type Description
year Number
Source:
Returns:
Type
Boolean

<inner> parseSqlDate(sqlDate) → {Date}

Transform a SQL string date into a Date
Parameters:
Name Type Description
sqlDate String
Source:
Returns:
date
Type
Date

<inner> toSqlDate(date, withHours) → {String}

Transform a date into a SQL date : YYYY-MM-DD HH:MM:SS
Parameters:
Name Type Description
date Date
withHours Boolean
Source:
Returns:
string date with format YYYY-MM-DD HH:MM:SS
Type
String