Hi, Im using framework7 calender. I want to set today date as default date for the calendar input. I tried below but its not working.
var attendanceDate = app.calendar.create({
inputEl: '#attendance-date',
dateFormat: 'DD, MM dd, yyyy',
openIn: 'customModal',
});
var today = new Date();
attendanceDate.setValue(today);
1 Like
attendanceDate.setValue([today])
1 Like
Thanks.
I have been trying to use calendar.getValue(). It return value like this “Thu Sep 06 2018 00:00:00 GMT+0530 (India Standard Time)”. I want to format that value like this ‘dd/mm/yyyy’.
Its look like Date() return value, so I tried getDate(), it not working. How to do that.
Thanks in advance.