I need to get the date and time of the local users computer and put them into a variable that I can check...
Code: Select all
var localuserdate = new Date()
var monthname=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
document.write((localuserdate.getDate()) + (" ") + (monthname[localuserdate.getMonth()]))
but I cannot then create a string from this that I can use in the php. I need to be able to store the variable in the session rather than write it to the page.
I know this sounds weird, but I need this page to display different info based on what the user has their clock set to...
Can anybody help me?