•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 426,194 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,831 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 1748 | 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 8: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
![]() |
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- learning php (PHP)
- External USB Drives on Servers Failing, Sort of (Storage)
- 700x90 Footer Banner, $30 for first 30,000 views (Ad Space for Sale)
- Web servers (Networking Hardware Configuration)
- Novell (Novell)
Other Threads in the JSP Forum
- Previous Thread: Combo box and Ms-access
- Next Thread: Please help me in connecting JSP to MySql



Linear Mode