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 used by the parseDate() and formatDate() methods of this 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
 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

DateManager()

Method Detail

calendarCloseHandler

void calendarCloseHandler(cal)

calendarDateStatusHandler

Object calendarDateStatusHandler(date)

calendarSelectHandler

void calendarSelectHandler(cal, date)

convertDate

Object convertDate(value, iformat, oformat)

dateChanged

void dateChanged(node)

dayChanged

void dayChanged(node)

formatDate

Object formatDate(theDate, formatStr)

getValueByFormat

Object getValueByFormat(theDate, format)

monthChanged

void monthChanged(node)

parseDate

Object parseDate(valueStr, formatStr)

parseIfExists

Object parseIfExists(formatStr,format,valueStr,target)

parseLongDay

Object parseLongDay(day)

parseLongMonth

Object parseLongMonth(month)

parseShortDay

Object parseShortDay(day)

parseShortMonth

Object parseShortMonth(month)

parseUnitValue

Object parseUnitValue(format,valueStr)

showCalendar

void showCalendar(node)

yearChanged

void yearChanged(node)

MoreMotion Face API

Copyright 2002 - 2008, MOR YAZILIM
Documentation generated by JSDoc on Mon Sep 29 14:52:55 2008