dojox/date/buddhist/Date (version 1.10)

Usage

var foo = new Date();
dojox/date/buddhist/Date
<

This function initialize the date object values

>This function initialize the date object values

>

See the dojox/date/buddhist/Date reference documentation for more information.

Property Summary

Method Summary

Properties

_date
_day
_hours
_milliseconds
_minutes
_month
_seconds
_year

Methods

_addMilliseconds(milliseconds)
Parameter Type Description
milliseconds Number
Returns:function
_addMinutes(minutes)
Parameter Type Description
minutes Number
Returns:function
_addSeconds(seconds)
Parameter Type Description
seconds Number
Returns:function
_getDaysInMonth(month,year)
Parameter Type Description
month number
year number
Returns:undefined
fromGregorian(gdate)

This function sets this Date to the Hebrew Date corresponding to the Gregorian Date

Parameter Type Description
gdate Date
Returns:function

This function sets this Date to the Hebrew Date corresponding to the Gregorian Date

getDate(isNumber)

This function returns the date value (0 - 30)

Parameter Type Description
isNumber boolean
Optional
Returns:undefined

Examples

Example 1

var date1 = new dojox.date.buddhist.Date();
console.log(date1.getDate());
getDay()

This function return Week Day value ( 0 - 6 )

Returns:undefined
getFullYear()

This function return the Year value

Returns:undefined

Examples

Example 1

var date1 = new dojox.date.buddhist.Date();
console.log(date1.getFullYear());
getHours()

returns the Hour value

Returns:undefined
getMilliseconds()

returns the Milliseconds value

Returns:undefined
getMinutes()

returns the Minutes value

Returns:undefined
getMonth()

This function return the month value ( 0 - 11 )

Returns:undefined

Examples

Example 1

var date1 = new dojox.date.buddhist.Date();
console.log(date1.getMonth()+1);
getSeconds()

returns the Seconds value

Returns:undefined
setDate(date)

This function sets the Date

Parameter Type Description
date number
Returns:function

This function sets the Date

Examples

Example 1

var date1 = new dojox.date.buddhist.Date();
date1.setDate(2);
setFullYear(year,month,date)

This function set Year

Parameter Type Description
year number
month number
Optional
date number
Optional

Examples

Example 1

var date1 = new dojox.date.buddhist.Date();
date1.setFullYear(2552);
date1.setFullYear(2552, 1, 1);
setHours()

set the Hours 0-23

setMilliseconds(milliseconds)
Parameter Type Description
milliseconds Number
Returns:function
setMinutes(minutes)

sets the minutes (0-59) only.

Parameter Type Description
minutes Number
Returns:function

sets the minutes (0-59) only.

setMonth(month)

This function set Month

Parameter Type Description
month number

Examples

Example 1

var date1 = new dojox.date.buddhist.Date();
date1.setMonth(0); //first month
setSeconds(seconds)

sets the seconds (0-59) only.

Parameter Type Description
seconds Number
Returns:function

sets the seconds (0-59) only.

toGregorian()

This returns the equivalent Gregorian date value as a Date object

Returns:instance
toString()

This returns a string representation of the date in "dd, MM, YYYY HH:MM:SS" format

Returns:string
valueOf()
Error in the documentation? Can’t find what you are looking for? Let us know!