Hi friend thanks for your reply.
your code is working at some stages.only working at month of may after changing like below
i have changed your code like this means avoid lowercase and changed firstletter capital like this
function returnMonthNumber(month) {
if (month == "January") { return 0 };
if (month == "February") { return 1 };
if (month == "March") { return 2 };
if (month == "April") { return 3 };
if (month == "May") { return 4 };
if (month=="June") { return 5 };
if (month == "July") { return 6 };
if (month == "August") { return 7 };
if (month == "September") { return 8 };
if (month == "October") { return 9 };
if (month == "November") { return 10 };
if (month == "December") { return 11 };
}
function returnMonthName(monthNumber) {
if (monthNumber == 0) { return "January" };
if (monthNumber == 1) { return "February" };
if (monthNumber == 2) { return "March" };
if (monthNumber == 3) { return "April" };
if (monthNumber == 4) { return "May" };
if (monthNumber == 5) { return "june" };
if (monthNumber == 6) { return "July" };
if (monthNumber == 7) { return "August" };
if (monthNumber == 8) { return "September" };
if (monthNumber == 9) { return "October" };
if (monthNumber == 10) { return "November" };
if (monthNumber == 11) { return "December" };
}
function paddy(n, p, c) {
var pad_char = typeof c !== 'undefined' ? c : '0';
var pad = new Array(1 + p).join(pad_char);
return (pad + n).slice(-pad.length);
}
yur code is woking fine only the month of 2014 may.rest of month is not working.
i need only from 2014 may
how to solve this
Regards
Baiju
Klbaiju, if this helps please login to Mark As Answer. | Alert Moderator