Guest Spoons Posted November 15, 2005 Share Posted November 15, 2005 Hi,I was wondering if anyone here could help me with a little javascript. I was wondering how i can achieve the same functionality with the VbScript below but with Javascript since obviously FF/Opera and Co. do not like VbScript...<script TYPE="TEXT/VBSCRIPT">document.write(MonthName(month(#<%=rs("DATE_RECORD")%>#)))document.write(" ")document.write(Year(#<%=rs("DATE_RECORD")%>#))</SCRIPT>Essentially what i am trying to do, is take some records from a database field and instead of displaying them as dd/mm/yyyy or rather since the records are coming from SQL mm/dd/yyyy, i wanted to just display the distinct "month + year" for the recordset. I've got the ASP side sorted, but am just a little stuck with how to acheive the same functionality in javascript as the above vbscript since the above script works a treat in IE but obviously no other browsers.Any help would be greatly appreciated.Thanks in advance. Link to comment Share on other sites More sharing options...
Chocolate570 Posted November 15, 2005 Share Posted November 15, 2005 Do you just need the current month+year or do you need to pull it out of a db? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now