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.
window.WTN.showDateTimePicker({
showDate:true,
showTime:true,
callback:function(data){
console.log("Date Data ->",JSON.stringify(data));
}
});import { showDateTimePicker } from "webtonative"
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

Last updated