Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/ninja-fo.../deprecat.../js/min
File: jquery.phpDate.min.js
(function($){var aDays=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];var aMonths=["January","February","March","April","May","June","July","August","September","October","November","December"];$.PHPDate=function(sString,dtDate){var sElement="";var sOutput="";sString=sString.replace(/r/g,"D, j M Y H;i:s O");for(var i=0;i<sString.length;i++){sElement=sString.charAt(i);switch(sElement){case "a":sElement=AMPM(dtDate.getHours());break;case "c":sElement=dtDate.getFullYear()+"-"+
[0] Fix | Delete
AddLeadingZero(dtDate.getMonth())+"-"+AddLeadingZero(dtDate.getDate())+"T"+AddLeadingZero(dtDate.getHours())+":"+AddLeadingZero(dtDate.getMinutes())+":"+AddLeadingZero(dtDate.getSeconds());var sTemp=dtDate.toString().split(" ")[5];if(sTemp.indexOf("-")>-1)sElement+=sTemp.substr(sTemp.indexOf("-"));else if(sTemp.indexOf("+")>-1)sElement+=sTemp.substr(sTemp.indexOf("+"));else sElement+="+0000";break;case "d":sElement=AddLeadingZero(dtDate.getDate());break;case "g":sElement=TwelveHourClock(dtDate.getHours());
[1] Fix | Delete
break;case "h":sElement=AddLeadingZero(TwelveHourClock(dtDate.getHours()));break;case "i":sElement=AddLeadingZero(dtDate.getMinutes());break;case "j":sElement=dtDate.getDate();break;case "l":sElement=aDays[dtDate.getDay()];break;case "m":sElement=AddLeadingZero(dtDate.getMonth()+1);break;case "n":sElement=dtDate.getMonth()+1;break;case "o":new Date(FirstMonday(dtDate.getFullYear()))>dtDate?sElement=dtDate.getFullYear()-1:sElement=dtDate.getFullYear();break;case "s":sElement=AddLeadingZero(dtDate.getSeconds());
[2] Fix | Delete
break;case "t":var dtTemp=new Date(dtDate.valueOf());dtTemp.setMonth(dtTemp.getMonth()+1);dtTemp.setDate(0);sElement=dtTemp.getDate();break;case "u":sElement=dtDate.getMilliseconds();break;case "w":sElement=dtDate.getDay();break;case "y":sElement=dtDate.getFullYear().toString().substr(2,2);break;case "z":var dtFirst=new Date(dtDate.getFullYear(),0,1,0,0,0,0);var dtLast=new Date(dtDate.getFullYear(),dtDate.getMonth(),dtDate.getDate(),0,0,0,0);sElement=Math.round((dtLast.valueOf()-dtFirst.valueOf())/
[3] Fix | Delete
1E3/60/60/24);break;case "A":sElement=AMPM(dtDate.getHours()).toUpperCase();break;case "B":sElement=Math.floor((dtDate.getHours()*60*60*1E3+dtDate.getMinutes()*60*1E3+dtDate.getSeconds()*1E3+dtDate.getMilliseconds())/86400);break;case "D":sElement=aDays[dtDate.getDay()].substr(0,3);break;case "F":sElement=aMonths[dtDate.getMonth()];break;case "G":sElement=dtDate.getHours();break;case "H":sElement=AddLeadingZero(dtDate.getHours());break;case "I":var dtTempFirst=new Date(dtDate.getFullYear(),0,1);var dtTempLast=
[4] Fix | Delete
new Date(dtDate.getFullYear(),dtDate.getMonth(),dtDate.getDate());var iDaysDiff=(dtTempLast.valueOf()-dtTempFirst.valueOf())/1E3/60/60/24;iDaysDiff==Math.round(iDaysDiff)?sElement=0:sElement=1;break;case "L":(new Date(dtDate.getFullYear(),2,0)).getDate()==29?sElement=1:sElement=0;break;case "M":sElement=aMonths[dtDate.getMonth()].substr(0,3);break;case "N":dtDate.getDay()==0?sElement=7:sElement=dtDate.getDay();break;case "O":var sTemp=dtDate.toString().split(" ")[5];if(sTemp.indexOf("-")>-1)sElement=
[5] Fix | Delete
sTemp.substr(sTemp.indexOf("-"));else if(sTemp.indexOf("+")>-1)sElement=sTemp.substr(sTemp.indexOf("+"));else sElement="+0000";break;case "P":var sTemp=dtDate.toString().split(" ")[5];if(sTemp.indexOf("-")>-1){var aTemp=sTemp.substr(sTemp.indexOf("-")+1).split("");sElement="-"+aTemp[0]+aTemp[1]+":"+aTemp[2]+aTemp[3]}else if(sTemp.indexOf("+")>-1){var aTemp=sTemp.substr(sTemp.indexOf("+")+1).split("");sElement="+"+aTemp[0]+aTemp[1]+":"+aTemp[2]+aTemp[3]}else sElement="+00:00";break;case "S":sElement=
[6] Fix | Delete
DateSuffix(dtDate.getDate());break;case "T":sElement=dtDate.toString().split(" ")[5];if(sElement.indexOf("+")>-1)sElement=sElement.substr(0,sElement.indexOf("+"));else if(sElement.indexOf("-")>-1)sElement=sElement.substr(0,sElement.indexOf("-"));break;case "U":sElement=Math.floor(dtDate.getTime()/1E3);break;case "W":var dtTempFirst=new Date(FirstMonday(dtDate.getFullYear()));var dtTempLast=new Date(dtDate.getFullYear(),dtDate.getMonth(),dtDate.getDate());sElement=Math.ceil(Math.round((dtTempLast.valueOf()-
[7] Fix | Delete
dtTempFirst.valueOf())/1E3/60/60/24)/7);break;case "Y":sElement=dtDate.getFullYear();break;case "Z":dtDate.getTimezoneOffset()<0?sElement=Math.abs(dtDate.getTimezoneOffset()*60):sElement=0-dtDate.getTimezoneOffset()*60;break}sOutput+=sElement.toString()}return sOutput};function AddLeadingZero(iValue){if(iValue<10)iValue="0"+iValue;return iValue}function AMPM(iHours){if(iHours>11)return"pm";else return"am"}function DateSuffix(iDay){var sSuffix="th";switch(parseInt(iDay)){case 1:case 21:case 31:sSuffix=
[8] Fix | Delete
"st";break;case 2:case 22:sSuffix="nd";break;case 3:case 23:sSuffix="rd"}return sSuffix}function FirstMonday(iYear){var dtTemp=new Date(iYear,0,1);while(dtTemp.getDay()!=1)dtTemp.setDate(dtTemp.getDate()+1);return dtTemp.valueOf()}function TwelveHourClock(iHours){if(iHours==0)iHours=24;else if(iHours>12)iHours-=12;return iHours}})(jQuery);
[9] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function