• Resolved 0ldrpmartin

    (@0ldrpmartin)


    I need to change the default dd.mm.yyyy to Month Day, Year for the “Simple Calendar 2.” How do I do that?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author totalsoft

    (@totalsoft)

    Hello Dear 0ldrpmartin.

    Thank You for contacting with us and for telling us about your request. I will say you the way how to make your request.

    Open the Widget.php file of our plugin. After line 966 add this part:

    var SimpleMonth = new Array('', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');

    Replace line 971 with this row:

    var date = SimpleMonth[parseInt(lpad(d.getMonth() + 1, 2))] + ' ' + lpad(d.getDate(), 2) + ', ' + d.getFullYear() + ' ' + timesimcalreal;

    Replace line 977 with this row:

    var date = SimpleMonth[parseInt(lpad(d.getMonth() + 1, 2))] + ' ' + lpad(d.getDate(), 2) + ', ' + d.getFullYear() + ' ' + timesimcalreal;

    Replace line 981 with this row:

    var date = SimpleMonth[parseInt(lpad(d.getMonth() + 1, 2))] + ' ' + lpad(d.getDate(), 2) + ', ' + d.getFullYear() + ' - ' + SimpleMonth[parseInt(lpad(parseInt(enddatemonth) + 1, 2))] + ' ' + lpad(enddateday, 2) + ', ' + enddateyear + ' ' + timesimcalreal;

    Thank You.

Viewing 1 replies (of 1 total)

The topic ‘Date format for EVENTS section’ is closed to new replies.