Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hi,
    I created a function to showe start and end time in the fullcalendar.js file

    // Change formatDates function in the below line….
    “<span class=’fc-event-time’>” +
    htmlEscape(
    formatDates(event.start, event.end, opt(‘timeFormat’))
    ) +
    “</span>”;

    //After……..
    “<span class=’fc-event-time’>” +
    htmlEscape(
    StartandEndDates(event.start, event.end)
    ) +
    “</span>”;

    ……………

    // Add a new function name as StartandEndDates
    function StartandEndDates(startDate, endDate)
    {

    var start=startDate.getHours();
    if(start>12){start=start-12;}
    var sMinutes=startDate.getMinutes();
    if(sMinutes==’0′){sMinutes=’00’;}

    var sAm= start>=12?’pm’:’am’;

    var end=endDate.getHours();
    if(end>12){end=end-12;}

    var eMinutes=endDate.getMinutes();
    if(eMinutes==’0′){eMinutes=’00’;}
    var sPm= end>=12?’pm’:’am’;

    var result=start+”:”+sMinutes+sAm+”-“+end+”:”+eMinutes+sPm;

    return result;
    }

    /////////////////

    With Regards,
    Rajendhiran Muthusamy

Viewing 1 replies (of 1 total)