• vaujuami

    (@vaujuami)


    Hi!
    How to add the day?
    For example: Sunday, November 5, 2017.
    actually show November 5, 2017.
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • A bit late, but i’ve just had to do this….

    Here’s how. You’ll have to edit 2 files

    After line 301 of date-time.php add
    "longw" => date( "l F j, Y", current_time( 'timestamp', 0 ) ),

    And in widget.js after line 7 add
    var weekdays = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");

    After line 18 add
    var weekday = currentTime.getDay();

    After line 32 add

    	else if (date_format == "longw") {
          $date.text(weekdays[weekday] + " " + months[month] + " " + day + ", " + year);
        }

    Hope this helps

    • This reply was modified 7 years, 8 months ago by fonefixer.
    randymartinameritech.net

    (@randymartinameritechnet)

    1. Where is this file and what is it called?
    2. Once I make this change, will it remain during updates?

    Just an FYI that I’m considering doing an update to get the format of the date and time from the General Settings and eliminating the Time Format and Date Format dropdowns.

    And yes, any custom changes you make would be overwritten by an update.

    Thx.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to add the day?’ is closed to new replies.