rialto.date


Name space rialto.array
FILE rialtoEngine\javascript\core\baseRialto.js
NAME rialto.date
INHERITS
VERSION 0.86
update
DESCRIPTION methods to manipulate date



CONSTRUCTOR


Example:
this is an abstract object and all the method must be call using the rialto.date prefix

PUBLIC METHODS


Method Arguments list Return value Inherits To redefine
add String strFormat,date datePar,int delay void no no
DDMMYYYYfromYYYYMMDD String stDate String no no
equals date datePar1,date datePar2 boolean no no
getDDMMYYYY date datePar String no no
getWeekNumber date datePar int no no
getYYYYMMDD date datePar String no no
isDate String stDate boolean no no
setDateFromYYYYMMDD String stDate date no no
toDay date no no
YYYYMMDDfromDDMMYYYY String stDate String no no

add

add the given delay to a date. The delay can be in year,mont or day according to the strFormat
Parameters:
String strFormat:can be 'year','month' or 'day'
date datePar:date we manipulate
int delay:nuber to add

DDMMYYYYfromYYYYMMDD

convert the given string to a format DD/MM/YYYY from a format YYYYMMDD
Parameters:
String stDate:string representation of a date with YYYYMMDD format

equals

return true if the 2 dates are equals. Test is made only on year,mont and day
Parameters:
date datePar1:date we manipulate
date datePar2:date we manipulate

getDDMMYYYY

return a string representation to a format DD/MM/YYYY
Parameters:
date datePar:date we manipulate

getWeekNumber

return the week number of the given date
Parameters:
date datePar:date we manipulate

getYYYYMMDD

return a string representation to a format YYYYMMDD
Parameters:
date datePar:date we manipulate

isDate

true if the given string (format DD/MM/YYYY) is a valid date
Parameters:
String stDate:string representation of a date with DD/MM/YYYY format

setDateFromYYYYMMDD

return date from a string representation (format YYYYMMDD)
Parameters:
String stDate:string representation with YYYYMMDD format

toDay

return the curent date
Parameters:

YYYYMMDDfromDDMMYYYY

convert the given string to a format YYYYMMDD from a format DD/MM/YYYY
Parameters:
String stDate:string representation of a date with DD/MM/YYYY format