I’m trying to get a jquery or java-script code for displaying the current month and year in a div, but unable so far. I mean I want to display the current month and year in this format:October 2012 so that every month I don’t need to edit it or anything.
I saw many questions here, but none shows how to display the variable in a div.
Any idea how to accomplish that?
Your help and ideas are much appreciated
JavaScript doesn’t natively implement
strftime, so you’ll have to do something a bit less elegant:I’m assuming that you have an element with an
idofdatesomewhere in your HTML.