Using the jQuery event calendar and I’m displaying it in event list format to show the staff schedule. By default it shows today’s date, but the user can scroll back and forth to other dates.
The selected date is shown between the arrows, but what I would like is for the date to display as “Today” if it is today’s date, and “Tomorrow” if it is tomorrow’s date. Is that possible?
Here’s my code:
<script>
$.get("get-staffschedule.json.php?staffid=0", function(data){
var inst = $('#staffschedule').mobiscroll().eventcalendar({
display: 'inline',
dateFormat: js_dateformat,
noEventsText: 'No staff scheduled',
lang: '<?=$locale?>',
view: {
eventList: { type: 'day', scrollable: true }
}
}).mobiscroll('getInst');
inst.setEvents(JSON.parse(data));
});
</script>