Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > JavaScript API > Date Control API

About Date Control API

Scroll Prev Next More

 

The Date Control API allows working in-depth with the date values. It can also limit the weekdays the user can choose or set the available date interval.

 

Date Control API can be used in the JavaScript OnLoad event, as well as any other JavaScript event.

Date Control API Methods

Method

Description

setValue

Sets the Date control value.

getValue

Gets the Date control value as a Date object.

getMomentValue

Get the Date control value as a Moment.js object.

toggleWeekDay

Sets the allowed days of the week.

setAllowedInterval

Sets the allowed dates interval.

getAllowedInterval

Gets the allowed dates interval, returns the JavaScript Date array.

See also:

Event: GetTablePermissions

"Edit as" settings: Date

About JavaScript API