Calendar - Android
To open native calendar wit native language
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