Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 1841 | Replies: 3
![]() |
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
plz tell em what to do
thanks in advance.
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()
thanks in advance.
Last edited by bhuvan83 : Mar 30th, 2007 at 9:22 am.
Bhuvan Aggarwal
There is no word impossible.
its i m possible
There is no word impossible.
its i m possible
JavaScript != Java Find a JavaScript forum.
But, if the page is generated, rather than static, than have that page include a hidden field containg the date at the time of the request.
But, if the page is generated, rather than static, than have that page include a hidden field containg the date at the time of the request.
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)






Linear Mode