For the complete documentation index, see llms.txt. This page is also available as Markdown.

Android Calendar API

Access and manage Android calendar events using the WebToNative JavaScript API. Create, update, and read calendar entries seamlessly.

Native calendar with language support and an option to take time also from the user.

Can be configured to only take time input from the user.

You'll need to import the JavaScript file into your website before starting from this link.

window.WTN.showDateTimePicker({
    showDate:true,
    showTime:true,
    callback:function(data){
        console.log("Date Data ->",JSON.stringify(data));
    }
});

Data returned - 

{"success":true,"type":"DATE_TIME_PICKER","date":"2024-7-7","time":"18:30","timestamp":"1723035604669"}

To capture only date - set showDate:true and showTime:false
To capture only time - set showDate:false and showTime:true
To capture both - set showDate:true and showTime:true
Date view
Time view

Last updated