|
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 used by the parseDate() and formatDate() methods of this 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 | |
void
|
calendarCloseHandler(cal)
|
Object
|
calendarDateStatusHandler(date)
|
void
|
calendarSelectHandler(cal, date)
|
Object
|
convertDate(value, iformat, oformat)
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. |
Object
|
formatDate(theDate, formatStr)
Builds a formatted data string and returns it. |
Object
|
getValueByFormat(theDate, format)
|
void
|
monthChanged(node)
Informs the DataDialog object about the change in the Month. |
Object
|
parseDate(valueStr, formatStr)
Parses the date given in the value string according to the specified format and returns it. |
Object
|
parseIfExists(formatStr,format,valueStr,target)
|
Object
|
parseLongDay(day)
|
Object
|
parseLongMonth(month)
|
Object
|
parseShortDay(day)
|
Object
|
parseShortMonth(month)
|
Object
|
parseUnitValue(format,valueStr)
|
void
|
showCalendar(node)
|
void
|
yearChanged(node)
Informs the DataDialog object about the change in the Year. |
Constructor Detail |
DateManager()
Method Detail |
void calendarCloseHandler(cal)
Object calendarDateStatusHandler(date)
void calendarSelectHandler(cal, date)
Object convertDate(value, iformat, oformat)
value
- The string that contains a date in input format
iformat
- The input format
oformat
- The output format
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
Object formatDate(theDate, formatStr)
theDate
- The data as Date object
formatStr
- The format string. See DateBox.props.valueFormat
Object getValueByFormat(theDate, format)
void monthChanged(node)
node
- The DOM node of the Month element node that has changed
Object parseDate(valueStr, formatStr)
valueStr
- The string that keeps the date to parse. See dateFormatingSymbols
Object parseIfExists(formatStr,format,valueStr,target)
Object parseLongDay(day)
Object parseLongMonth(month)
Object parseShortDay(day)
Object parseShortMonth(month)
Object parseUnitValue(format,valueStr)
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 |