The component defines the UmAlqura (Hijri) Calendar Object according to Umalqura calculations This module is similar to the Date() object provided by JavaScript
See the dojox/date/umalqura/Date reference documentation for more information.
var date = new dojox.date.umalqura.Date(); document.writeln(date.getFullYear()+'\'+date.getMonth()+'\'+date.getDate());
return Boolean value if Islamic leap year
Parameter | Type | Description |
---|---|---|
year | Number |
return the start of Islamic Month
Parameter | Type | Description |
---|---|---|
year | Number | |
month | Number |
return start of Islamic year
Parameter | Type | Description |
---|---|---|
year | Number |
This function returns the equivalent UmAlqura Date value for the Gregorian Date
Parameter | Type | Description |
---|---|---|
gdate | Date |
This function returns the equivalent UmAlqura Date value for the Gregorian Date
var dateIslamic = new dojox.date.umalqura.Date(); var dateGregorian = new Date(2008,10,12); dateIslamic.fromGregorian(dateGregorian);
This function returns the date value (1 - 30)
var date1 = new dojox.date.umalqura.Date(); document.writeln(date1.getDate);
This function returns the week day value ( 0 - 6 ) sunday is 0, monday is 1,...etc
var date1 = new dojox.date.umalqura.Date(); document.writeln(date1.getDay());
returns the number of days in the given Islamic month
Parameter | Type | Description |
---|---|---|
month | Number | |
year | Number |
Parameter | Type | Description |
---|---|---|
month | dojox/date/umalqura/Date |
This function return the year value
var date1 = new dojox.date.umalqura.Date(); document.writeln(date1.getFullYear());
This function return the month value ( 0 - 11 )
var date1 = new dojox.date.umalqura.Date(); document.writeln(date1.getMonth()+1);
This function sets the date
Parameter | Type | Description |
---|---|---|
date | number |
This function sets the date
var date1 = new dojox.date.umalqura.Date(); date1.setDate(2);
This function set Year
Parameter | Type | Description |
---|---|---|
year | number |
var date1 = new dojox.date.umalqura.Date(); date1.setYear(1429);
set the milliseconds
Parameter | Type | Description |
---|---|---|
milliseconds | number |
This function sets the month
Parameter | Type | Description |
---|---|---|
month | number |
var date1 = new dojox.date.umalqura.Date(); date1.setMonth(2);
This returns the equivalent gregorian date value in Date object
var dateIslamic = new dojox.date.umalqura.Date(1429,11,20); var dateGregorian = dateIslamic.toGregorian();
This returns a string representation of the date in "DDDD MMMM DD YYYY HH:MM:SS" format
var date1 = new dojox.date.umalqura.Date(); document.writeln(date1.toString());
This function returns the stored time value in milliseconds since midnight, January 1, 1970 UTC