I used to have the below script imbedded on my sales page so that the date and time would change everyday at midnight. But when I change to wordpress the script wont function anymore. I have been manually changing the date everyday for the past two years but its starting to get to be a pain in the butt. I've procrastinated long enough and need to get this script compatible for wordpress What kind of script do I need to work in wordpress and where can I get someone to make one. I'm guessing to only take about 5 minutes to write it out.
Need help with month /date script
11
I used to have the below script imbedded on my sales page so that the date and time would change everyday at midnight. But when I change to wordpress the script wont function anymore. I have been manually changing the date everyday for the past two years but its starting to get to be a pain in the butt. I've procrastinated long enough and need to get this script compatible for wordpress
What kind of script do I need to work in wordpress and where can I get someone to make one. I'm guessing to only take about 5 minutes to write it out.
<script>
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var montharray=new Array("January","February","March","April","May"," June","July",
"August","September","October","November","Decembe r")
document.write(""+montharray[month]+" "+daym+"")
</script>
Thanks
What kind of script do I need to work in wordpress and where can I get someone to make one. I'm guessing to only take about 5 minutes to write it out.
<script>
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var montharray=new Array("January","February","March","April","May"," June","July",
"August","September","October","November","Decembe r")
document.write(""+montharray[month]+" "+daym+"")
</script>
Thanks
- Brandon Tanner
- Andrew H
- KFranks
- [1] reply
- Brandon Tanner
- [ 2 ] Thanks
- KFranks
- Susan Stones
- [1] reply
- KFranks
- TopOfTheMornin
- Andrew H
Next Topics on Trending Feed
-
11