Access Keys:
Skip to content (Access Key - 0)
iServoy.com | Servoy.com | Forum index | Store | Developers | Documentation | Events | Products | Support

Date

All versions
Click for all versions
Servoy 5.0.x
Toggle Sidebar
This documentation relates to an earlier version of Servoy
View this page in the current documentation or visit the current documentation home.

\\
Method Summary
NumbergetDate()
Gets the day of month.
NumbergetDay()
Gets the day of the week (sunday = 0).
NumbergetFullYear()
Gets the full year of the date.
NumbergetHours()
Gets the hours of the date.
NumbergetMilliseconds()
Gets the milliseconds of the date.
NumbergetMinutes()
Gets the minutes of the date.
NumbergetMonth()
Gets the month of the date.
NumbergetSeconds()
Gets the seconds of the date.
NumbergetTime()
The value returned by the getTime method is the number of milliseconds since 1 January 1970 00:00:00.
NumbergetTimezoneOffset()
Gets the number of minutes between GMT and this date.
NumbergetUTCDate()
Gets the UTC date.
NumbergetUTCDay()
Gets the day in UTC time.
NumbergetUTCFullYear()
Gets the full year in UTC time.
NumbergetUTCHours()
Gets the hours in UTC time.
NumbergetUTCMilliseconds()
Gets the milliseconds in UTC time.
NumbergetUTCMinutes()
Gets the minutes in UTC time.
NumbergetUTCMonth()
Gets the month in UTC time.
NumbergetUTCSeconds()
Gets the seconds in UTC time.
voidsetDate(dayValue)
Sets the date.
voidsetFullYear(yearValue, monthValue, dayValue)
Sets the full year of the date.
voidsetHours(hoursValue, minutesValue, secondsValue, msValue)
Sets the hours of the date.
voidsetMilliseconds(millisecondsValue)
Sets the milliseconds of the date.
voidsetMinutes(minutesValue, secondsValue, msValue)
Sets the minutes of the date.
voidsetMonth(monthValue, dayValue)
Sets the month of the date.
voidsetSeconds(secondsValue, msValue)
Sets the seconds of the date.
voidsetTime(timeValue)
Sets the milliseconds of the date.
voidsetUTCDate(dayValue)
Sets the UTC date.
voidsetUTCFullYear(yearValue, monthValue, dayValue)
Sets the year in UTC time.
voidsetUTCHours(hoursValue, minutesValue, secondsValue, msValue)
Sets the hours in UTC time.
voidsetUTCMilliseconds(millisecondsValue)
Sets the milliseconds in UTC time.
voidsetUTCMinutes(minutesValue, secondsValue, msValue)
Sets the minutes in UTC time.
voidsetUTCMonth(monthValue, dayValue)
Sets the month in UTC time.
voidsetUTCSeconds(secondsValue, msValue)
Sets the seconds in UTC time.
voidsetYear(yearValue)
Sets the year of the date.
StringtoDateString()
Returns a string version of the date.
StringtoLocaleDateString()
Returns a string version of the local time zone of the date.
StringtoLocaleString()
Returns a string version of the local time zone of the date.
StringtoLocaleTimeString()
Returns a string version of the local time zone of the date.
StringtoTimeString()
Returns a string version of the date.
StringtoUTCString()
Returns a string version of the UTC value of the date.
NumbervalueOf()
Return integer milliseconds count

Method Details
getDate
NumbergetDate()

Gets the day of month.

Returns

Number

Sample
date.getDate();
getDay
NumbergetDay()

Gets the day of the week (sunday = 0).

Returns

Number

Sample
date.getDay();
getFullYear
NumbergetFullYear()

Gets the full year of the date.

Returns

Number

Sample
date.getFullYear();
getHours
NumbergetHours()

Gets the hours of the date.

Returns

Number

Sample
date.getHours();
getMilliseconds
NumbergetMilliseconds()

Gets the milliseconds of the date.

Returns

Number

Sample
date.getMilliseconds();
getMinutes
NumbergetMinutes()

Gets the minutes of the date.

Returns

Number

Sample
date.getMinutes();
getMonth
NumbergetMonth()

Gets the month of the date.

Returns

Number

Sample
date.getMonth();
getSeconds
NumbergetSeconds()

Gets the seconds of the date.

Returns

Number

Sample
date.getSeconds();
getTime
NumbergetTime()

The value returned by the getTime method is the number of milliseconds since 1 January 1970 00:00:00.

Returns

Number

Sample
date.getTime();
getTimezoneOffset
NumbergetTimezoneOffset()

Gets the number of minutes between GMT and this date.

Returns

Number

Sample
date.getTimezoneOffset();
getUTCDate
NumbergetUTCDate()

Gets the UTC date.

Returns

Number

Sample
date.getUTCDate();
getUTCDay
NumbergetUTCDay()

Gets the day in UTC time.

Returns

Number

Sample
date.getUTCDay();
getUTCFullYear
NumbergetUTCFullYear()

Gets the full year in UTC time.

Returns

Number

Sample
date.getUTCFullYear();
getUTCHours
NumbergetUTCHours()

Gets the hours in UTC time.

Returns

Number

Sample
date.getUTCHours();
getUTCMilliseconds
NumbergetUTCMilliseconds()

Gets the milliseconds in UTC time.

Returns

Number

Sample
date.getUTCMilliseconds();
getUTCMinutes
NumbergetUTCMinutes()

Gets the minutes in UTC time.

Returns

Number

Sample
date.getUTCMinutes();
getUTCMonth
NumbergetUTCMonth()

Gets the month in UTC time.

Returns

Number

Sample
date.getUTCMonth();
getUTCSeconds
NumbergetUTCSeconds()

Gets the seconds in UTC time.

Returns

Number

Sample
date.getUTCSeconds();
setDate
voidsetDate(dayValue)

Sets the date.

Parameters

dayValue

Returns

void

Sample
date.setDate(integer);
setFullYear
voidsetFullYear(yearValue, monthValue, dayValue)

Sets the full year of the date.

Parameters

yearValue
[monthValue]
[dayValue]

Returns

void

Sample
date.setFullYear(integer);
setHours
voidsetHours(hoursValue, minutesValue, secondsValue, msValue)

Sets the hours of the date.

Parameters

hoursValue
[minutesValue]
[secondsValue]
[msValue]

Returns

void

Sample
date.setHours(integer);
setMilliseconds
voidsetMilliseconds(millisecondsValue)

Sets the milliseconds of the date.

Parameters

millisecondsValue

Returns

void

Sample
date.setMilliseconds(integer);
setMinutes
voidsetMinutes(minutesValue, secondsValue, msValue)

Sets the minutes of the date.

Parameters

minutesValue
[secondsValue]
[msValue]

Returns

void

Sample
date.setMinutes(integer);
setMonth
voidsetMonth(monthValue, dayValue)

Sets the month of the date.

Parameters

monthValue
[dayValue]

Returns

void

Sample
date.setMonth(integr);
setSeconds
voidsetSeconds(secondsValue, msValue)

Sets the seconds of the date.

Parameters

secondsValue
[msValue]

Returns

void

Sample
date.setSeconds(integer);
setTime
voidsetTime(timeValue)

Sets the milliseconds of the date.

Parameters

timeValue

Returns

void

Sample
date.setTime(integer);
setUTCDate
voidsetUTCDate(dayValue)

Sets the UTC date.

Parameters

dayValue

Returns

void

Sample
date.setUTCDate(integer);
setUTCFullYear
voidsetUTCFullYear(yearValue, monthValue, dayValue)

Sets the year in UTC time.

Parameters

yearValue
[monthValue]
[dayValue]

Returns

void

Sample
date.setUTCFullYear(integer);
setUTCHours
voidsetUTCHours(hoursValue, minutesValue, secondsValue, msValue)

Sets the hours in UTC time.

Parameters

hoursValue
[minutesValue]
[secondsValue]
[msValue]

Returns

void

Sample
date.setUTCHours(integer);
setUTCMilliseconds
voidsetUTCMilliseconds(millisecondsValue)

Sets the milliseconds in UTC time.

Parameters

millisecondsValue

Returns

void

Sample
date.setUTCMilliseconds(integer);
setUTCMinutes
voidsetUTCMinutes(minutesValue, secondsValue, msValue)

Sets the minutes in UTC time.

Parameters

minutesValue
[secondsValue]
[msValue]

Returns

void

Sample
date.setUTCMinutes(integer);
setUTCMonth
voidsetUTCMonth(monthValue, dayValue)

Sets the month in UTC time.

Parameters

monthValue
[dayValue]

Returns

void

Sample
date.setUTCMonth(integer);
setUTCSeconds
voidsetUTCSeconds(secondsValue, msValue)

Sets the seconds in UTC time.

Parameters

secondsValue
[msValue]

Returns

void

Sample
date.setUTCSeconds(integer);
setYear
voidsetYear(yearValue)

Sets the year of the date.

Parameters

yearValue

Returns

void

Sample
date.setYear(integer);
toDateString
StringtoDateString()

Returns a string version of the date.

Returns

String

Sample
date.toDateString();
toLocaleDateString
StringtoLocaleDateString()

Returns a string version of the local time zone of the date.

Returns

String

Sample
date.toLocaleDateString();
toLocaleString
StringtoLocaleString()

Returns a string version of the local time zone of the date.

Returns

String

Sample
date.toLocaleString();
toLocaleTimeString
StringtoLocaleTimeString()

Returns a string version of the local time zone of the date.

Returns

String

Sample
date.toLocaleTimeString();
toTimeString
StringtoTimeString()

Returns a string version of the date.

Returns

String

Sample
date.toTimeString();
toUTCString
StringtoUTCString()

Returns a string version of the UTC value of the date.

Returns

String

Sample
date.toUTCString();
valueOf
NumbervalueOf()

Return integer milliseconds count

Returns

Number

Sample
date.valueOf(integer);

Visit our website at http://www.servoy.com or read our blogs at http://www.servoy.com/blog
Powered by Atlassian Confluence (w/ Adaptavist Theme Builder) | Terms of Use | Privacy Policy