|
MoreMotion Face API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--DateManager
Manager class that provides static methods to manage the DateBox and DateDialog classes. A static object of this class
is avaialable with name DateMgr.
var DateMgr = new DateManager();
The Date Formatting Symbols are as follows:
yy - Two-digit yearyyyy - Four-digit yearmm - Two-digit monthmmm - Month name (short form)mmmm - Month name (long form)dd - Day of monthddd - Week Day (sort form)dddd - Week Day (Long form)hh - Hournn - Minutess - Secondss - SecondInteger - The value is an IntegerParse - The value is parsed with Date.parse() method.today - The current date according to the browser's clock.The today reserved word
If today reserved word is used as a date value it is substituted with
the current date according to the browser's clock.
The Relative Date Definitions
The date values can be defined relatively by using relative date definition symbols after the date values.
Examples:
2007.01.01 +1y | One year ago from the date |
today -1m | One month ago from today |
today +10d | 10 days later |
Defined in Date.js
| Constructor Summary | |
DateManager()
|
|
| Method Summary | |
Object
|
calendarDateStatusHandler(date)
|
void
|
calendarSelectHandler(cal, date)
|
Object
|
closeCalendarIfTab(e)
|
Object
|
convertDate(value, iformat, oformat, silent)
Converts a date from one format to another and returns it. |
void
|
dateChanged(node)
Informs the DateBox object that there is a change in the date. |
void
|
dayChanged(node)
Informs the DataDialog object about the change in the Day. |
void
|
destroyCal()
|
Object
|
formatDate(theDate, formatStr)
Builds a formatted data string and returns it. |
Object
|
getDefaultDate(f,props)
|
Object
|
getFromDate(f,props)
|
Object
|
getToDate(f,props)
|
Object
|
getValueByFormat(theDate, format)
|
void
|
hideCalendar()
|
void
|
monthChanged(node)
Informs the DataDialog object about the change in the Month. |
Object
|
parseDate(valueStr, formatStr, defValue)
Parses the date given in the value string according to the specified format and returns it. |
Object
|
parseIfExists(formatStr,format,valueStr,def)
|
Object
|
parseLongDay(day)
|
Object
|
parseLongMonth(month)
|
Object
|
parseShortDay(day)
|
Object
|
parseShortMonth(month)
|
Object
|
parseUnitValue(format,valueStr)
|
Object
|
parseValueDate(value,f,props)
|
void
|
showCalendar(node)
|
void
|
yearChanged(node)
Informs the DataDialog object about the change in the Year. |
| Constructor Detail |
DateManager()
| Method Detail |
Object calendarDateStatusHandler(date)
void calendarSelectHandler(cal, date)
Object closeCalendarIfTab(e)
Object convertDate(value, iformat, oformat, silent)
value - The string that contains a date in input format
iformat - The input format
oformat - The output format
silent - Specify true if no error message should be alerted when an exception occurs
void dateChanged(node)
node - The DOM node of the HTML INPUT Element that has changed
void dayChanged(node)
node - The DOM node of the Day element node that has changed
void destroyCal()
Object formatDate(theDate, formatStr)
theDate - The data as Date object
formatStr - The format string. See Date Formatting Symbols
Object getDefaultDate(f,props)
Object getFromDate(f,props)
Object getToDate(f,props)
Object getValueByFormat(theDate, format)
void hideCalendar()
void monthChanged(node)
node - The DOM node of the Month element node that has changed
Object parseDate(valueStr, formatStr, defValue)
valueStr - The string that keeps the date to parse. See Date Formatting Symbols
formatStr - The string that keeps format for parsing. See Date Formatting Symbols
defValue - The default value to return when parsing fails. If this parameter s not provided and parsig fails the cause of the error is alerted.
Object parseIfExists(formatStr,format,valueStr,def)
Object parseLongDay(day)
Object parseLongMonth(month)
Object parseShortDay(day)
Object parseShortMonth(month)
Object parseUnitValue(format,valueStr)
Object parseValueDate(value,f,props)
void showCalendar(node)
void yearChanged(node)
node - The DOM node of the Year element node that has changed
|
MoreMotion Face API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||