hi i m making a website in which the user has to enter data on current or next days not of previous days.
but if the user changes the date of their system,they r able to enter data of previous day also.
is there any way in which i can get the date of server so that even if the user changes his computer date it does not effect the website.
the code i m using is
var currentTime = new Date()
var month =currentTime.getMonth()
var day = currentTime.getDate()-1
var year = currentTime.getFullYear()
plz tell em what to do
thanks in advance.