Child pages
  • Date

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Cache
indextrue
refresh100d
showRefreshtrue
iddoc
titleRefresh page
showDatetrue
retryEnable

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClientsWordListMobileClient

servoy sSummary12%30%58%height: 30px;3Methods SummaryTakes comma-delimited date parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the specified time.Takes comma-delimited date parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the specified time.Takes comma-delimited date parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the specified time.Takes comma-delimited date parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the specified time.Takes comma-delimited date parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the specified time.Takes comma-delimited date parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the specified time.Gets the day of month.Gets the day of the week (sunday = 0).Gets the full year of the date.Gets the hours of the date.Gets the milliseconds of the date.Gets the minutes of the date.Gets the month of the date.Gets the seconds of the date.The value returned by the getTime method is the number of milliseconds since 1 January 1970 00:00:00.Gets the number of minutes between GMT and this date.Gets the UTC date.Gets the day in UTC time.Gets the full year in UTC time.Gets the hours in UTC time.Gets the milliseconds in UTC time.Gets the minutes in UTC time.Gets the month in UTC time.Gets the seconds in UTC time.Returns the milliseconds elapsed since 1 January 1970 00:00:00 UTC up until now.Takes a date string (such as "Dec 25, 1995") and returns the number of milliseconds since January 1, 1970, 00:00:00 UTC.voidSets the date.voidSets the full year of the date.voidSets the full year of the date.voidSets the full year of the date.voidSets the hours of the date.voidSets the hours of the date.voidSets the hours of the date.voidSets the hours of the date.voidSets the milliseconds of the date.voidSets the minutes of the date.voidSets the minutes of the date.voidSets the minutes of the date.voidSets the month of the date.voidSets the month of the date.voidSets the seconds of the date.voidSets the seconds of the date.voidSets the milliseconds of the date.voidSets the UTC date.voidSets the year in UTC time.voidSets the year in UTC time.voidSets the year in UTC time.voidSets the hours in UTC time.voidSets the hours in UTC time.voidSets the hours in UTC time.voidSets the hours in UTC time.voidSets the milliseconds in UTC time.voidSets the minutes in UTC time.voidSets the minutes in UTC time.voidSets the minutes in UTC time.voidSets the month in UTC time.voidSets the month in UTC time.voidSets the seconds in UTC time.voidSets the seconds in UTC time.Returns a string version of the date.Returns a string version of the local time zone of the date.Returns a string version of the local time zone of the date.Returns a string version of the local time zone of the date.Returns a string version of the date.Returns a string version of the UTC value of the date.Return integer milliseconds count

functionservoy sDetail2100%height:30px2Methods DetailsUTCname

UTC(year, month)

dessIndentTakes comma-delimited date parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the specified time.prs

Parameters

sIndentyearA year after 1900.monthA number between 0 and 11.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow UTCname

UTC(year, month, date)

dessIndentTakes comma-delimited date parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the specified time.prs

Parameters

sIndentyearA year after 1900.monthA number between 0 and 11.dateA number between 1 and 31.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
UTCname

UTC(year, month, date, hrs)

dessIndentTakes comma-delimited date parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the specified time.prs

Parameters

sIndentyearA year after 1900.monthA number between 0 and 11.dateA number between 1 and 31.hrsA number between 0 and 23.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
UTCname

UTC(year, month, date, hrs, min)

dessIndentTakes comma-delimited date parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the specified time.prs

Parameters

sIndentyearA year after 1900.monthA number between 0 and 11.dateA number between 1 and 31.hrsA number between 0 and 23.minA number between 0 and 59.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
UTCname

UTC(year, month, date, hrs, min, sec)

dessIndentTakes comma-delimited date parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the specified time.prs

Parameters

sIndentyearA year after 1900.monthA number between 0 and 11.dateA number between 1 and 31.hrsA number between 0 and 23.minA number between 0 and 59.secA number between 0 and 59.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
UTCname

UTC(year, month, date, hrs, min, sec, ms)

dessIndentTakes comma-delimited date parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the specified time.prs

Parameters

sIndentyearA year after 1900.monthA number between 0 and 11.dateA number between 1 and 31.hrsA number between 0 and 23.minA number between 0 and 59.secA number between 0 and 59.msA number between 0 and 999.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
getDatename

getDate()

dessIndentGets the day of month.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
getDayname

getDay()

dessIndentGets the day of the week (sunday = 0).ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
getFullYearname

getFullYear()

dessIndentGets the full year of the date.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
getHoursname

getHours()

dessIndentGets the hours of the date.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
getMillisecondsname

getMilliseconds()

dessIndentGets the milliseconds of the date.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
getMinutesname

getMinutes()

dessIndentGets the minutes of the date.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
getMonthname

getMonth()

dessIndentGets the month of the date.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
getSecondsname

getSeconds()

dessIndentGets the seconds of the date.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
getTimename

getTime()

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

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
getTimezoneOffsetname

getTimezoneOffset()

dessIndentGets the number of minutes between GMT and this date.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
getUTCDatename

getUTCDate()

dessIndentGets the UTC date.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
getUTCDayname

getUTCDay()

dessIndentGets the day in UTC time.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
getUTCFullYearname

getUTCFullYear()

dessIndentGets the full year in UTC time.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
getUTCHoursname

getUTCHours()

dessIndentGets the hours in UTC time.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
getUTCMillisecondsname

getUTCMilliseconds()

dessIndentGets the milliseconds in UTC time.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
getUTCMinutesname

getUTCMinutes()

dessIndentGets the minutes in UTC time.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
getUTCMonthname

getUTCMonth()

dessIndentGets the month in UTC time.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
getUTCSecondsname

getUTCSeconds()

dessIndentGets the seconds in UTC time.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
nowname

now()

dessIndentReturns the milliseconds elapsed since 1 January 1970 00:00:00 UTC up until now.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
parsename

parse(String)

dessIndentTakes a date string (such as "Dec 25, 1995") and returns the number of milliseconds since January 1, 1970, 00:00:00 UTC.prs

Parameters

sIndent
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setDatename

setDate(dayValue)

dessIndentSets the date.prs

Parameters

sIndentdayValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setFullYearname

setFullYear(yearValue)

dessIndentSets the full year of the date.prs

Parameters

sIndentyearValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setFullYearname

setFullYear(yearValue, monthValue)

dessIndentSets the full year of the date.prs

Parameters

sIndentyearValue monthValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setFullYearname

setFullYear(yearValue, monthValue, dayValue)

dessIndentSets the full year of the date.prs

Parameters

sIndentyearValue monthValue dayValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setHoursname

setHours(hoursValue)

dessIndentSets the hours of the date.prs

Parameters

sIndenthoursValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setHoursname

setHours(hoursValue, minutesValue)

dessIndentSets the hours of the date.prs

Parameters

sIndenthoursValue minutesValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setHoursname

setHours(hoursValue, minutesValue, secondsValue)

dessIndentSets the hours of the date.prs

Parameters

sIndenthoursValue minutesValue secondsValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setHoursname

setHours(hoursValue, minutesValue, secondsValue, msValue)

dessIndentSets the hours of the date.prs

Parameters

sIndenthoursValue minutesValue secondsValue msValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setMillisecondsname

setMilliseconds(millisecondsValue)

dessIndentSets the milliseconds of the date.prs

Parameters

sIndentmillisecondsValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setMinutesname

setMinutes(minutesValue)

dessIndentSets the minutes of the date.prs

Parameters

sIndentminutesValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setMinutesname

setMinutes(minutesValue, secondsValue)

dessIndentSets the minutes of the date.prs

Parameters

sIndentminutesValue secondsValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setMinutesname

setMinutes(minutesValue, secondsValue, msValue)

dessIndentSets the minutes of the date.prs

Parameters

sIndentminutesValue secondsValue msValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setMonthname

setMonth(monthValue)

dessIndentSets the month of the date.prs

Parameters

sIndentmonthValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setMonthname

setMonth(monthValue, dayValue)

dessIndentSets the month of the date.prs

Parameters

sIndentmonthValue dayValue 
ret

Returns

sIndentclientsSupported clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setSecondsname

setSeconds(secondsValue)

dessIndentSets the seconds of the date.prs

Parameters

sIndentsecondsValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setSecondsname

setSeconds(secondsValue, msValue)

dessIndentSets the seconds of the date.prs

Parameters

sIndentsecondsValue msValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setTimename

setTime(timeValue)

dessIndentSets the milliseconds of the date.prs

Parameters

sIndenttimeValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setUTCDatename

setUTCDate(dayValue)

dessIndentSets the UTC date.prs

Parameters

sIndentdayValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setUTCFullYearname

setUTCFullYear(yearValue)

dessIndentSets the year in UTC time.prs

Parameters

sIndentyearValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setUTCFullYearname

setUTCFullYear(yearValue, monthValue)

dessIndentSets the year in UTC time.prs

Parameters

sIndentyearValue monthValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setUTCFullYearname

setUTCFullYear(yearValue, monthValue, dayValue)

dessIndentSets the year in UTC time.prs

Parameters

sIndentyearValue monthValue dayValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setUTCHoursname

setUTCHours(hoursValue)

dessIndentSets the hours in UTC time.prs

Parameters

sIndenthoursValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setUTCHoursname

setUTCHours(hoursValue, minutesValue)

dessIndentSets the hours in UTC time.prs

Parameters

sIndenthoursValue minutesValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setUTCHoursname

setUTCHours(hoursValue, minutesValue, secondsValue)

dessIndentSets the hours in UTC time.prs

Parameters

sIndenthoursValue minutesValue secondsValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setUTCHoursname

setUTCHours(hoursValue, minutesValue, secondsValue, msValue)

dessIndentSets the hours in UTC time.prs

Parameters

sIndenthoursValue minutesValue secondsValue msValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setUTCMillisecondsname

setUTCMilliseconds(millisecondsValue)

dessIndentSets the milliseconds in UTC time.prs

Parameters

sIndentmillisecondsValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setUTCMinutesname

setUTCMinutes(minutesValue)

dessIndentSets the minutes in UTC time.prs

Parameters

sIndentminutesValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setUTCMinutesname

setUTCMinutes(minutesValue, secondsValue)

dessIndentSets the minutes in UTC time.prs

Parameters

sIndentminutesValue secondsValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setUTCMinutesname

setUTCMinutes(minutesValue, secondsValue, msValue)

dessIndentSets the minutes in UTC time.prs

Parameters

sIndentminutesValue secondsValue msValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setUTCMonthname

setUTCMonth(monthValue)

dessIndentSets the month in UTC time.prs

Parameters

sIndentmonthValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setUTCMonthname

setUTCMonth(monthValue, dayValue)

dessIndentSets the month in UTC time.prs

Parameters

sIndentmonthValue dayValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setUTCSecondsname

setUTCSeconds(secondsValue)

dessIndentSets the seconds in UTC time.prs

Parameters

sIndentsecondsValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
setUTCSecondsname

setUTCSeconds(secondsValue, msValue)

dessIndentSets the seconds in UTC time.prs

Parameters

sIndentsecondsValue msValue 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
toDateStringname

toDateString()

dessIndentReturns a string version of the date.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
toLocaleDateStringname

toLocaleDateString()

dessIndentReturns a string version of the local time zone of the date.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
toLocaleStringname

toLocaleString()

dessIndentReturns a string version of the local time zone of the date.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
toLocaleTimeStringname

toLocaleTimeString()

dessIndentReturns a string version of the local time zone of the date.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
toTimeStringname

toTimeString()

dessIndentReturns a string version of the date.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
toUTCStringname

toUTCString()

dessIndentReturns a string version of the UTC value of the date.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
valueOfname

valueOf()

dessIndentReturn integer milliseconds countret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow