MoreMotion Face API

Class DateManager

Object
   |
   +--DateManager

class 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 Formating Symbols

The Date Formatting Symbols are as follows:


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 +1yOne year ago from the date
today -1mOne month ago from today
today +10d10 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

DateManager()

Method Detail

calendarDateStatusHandler

Object calendarDateStatusHandler(date)

calendarSelectHandler

void calendarSelectHandler(cal, date)

closeCalendarIfTab

Object closeCalendarIfTab(e)

convertDate

Object convertDate(value, iformat, oformat, silent)

dateChanged

void dateChanged(node)

dayChanged

void dayChanged(node)

destroyCal

void destroyCal()

formatDate

Object formatDate(theDate, formatStr)

getDefaultDate

Object getDefaultDate(f,props)

getFromDate

Object getFromDate(f,props)

getToDate

Object getToDate(f,props)

getValueByFormat

Object getValueByFormat(theDate, format)

hideCalendar

void hideCalendar()

monthChanged

void monthChanged(node)

parseDate

Object parseDate(valueStr, formatStr, defValue)

parseIfExists

Object parseIfExists(formatStr,format,valueStr,def)

parseLongDay

Object parseLongDay(day)

parseLongMonth

Object parseLongMonth(month)

parseShortDay

Object parseShortDay(day)

parseShortMonth

Object parseShortMonth(month)

parseUnitValue

Object parseUnitValue(format,valueStr)

parseValueDate

Object parseValueDate(value,f,props)

showCalendar

void showCalendar(node)

yearChanged

void yearChanged(node)

MoreMotion Face API

Copyright 2002 - 2011, MOR YAZILIM
Documentation generated by JSDoc on Thu Mar 3 18:19:14 2011