Class blade.util.Date
Object
|
+--Date
|
+--blade.util.Date
- class
blade.util.Date
- extends Date
Enhanced date object to parse more forms of input
Defined in util.js
Method Summary |
<static> function
|
isDate(date)
Checks whether a string is a date in the form month/day/year
|
<static> function
|
parse(date)
Parses a date string into an array.
|
<static> function
|
parseNum(date)
Parses a date string into an numerical array.
|
blade.util.Date
function blade.util.Date()
isDate
<static> function isDate(date)
Checks whether a string is a date in the form month/day/year
Parameters:
date
- a string in the format month/day/year
Returns:
true if the string is a date, false otherwise
parse
<static> function parse(date)
Parses a date string into an array.
Parameters:
date
- a string in the format month/day/year
Returns:
an array in the format (year, month, day)
parseNum
<static> function parseNum(date)
Parses a date string into an numerical array.
Parameters:
date
- a string in the format month/day/year
Returns:
an array in the format (year, month, day) where year, month, and day are guaranteed to be numbers or NaN