Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Application and Web Development > Java

Reply
 
LinkBack Thread Tools Display Modes
Old 03-29-2006, 04:09 AM   #1 (permalink)
j.gohel
Code Monkey
 
Join Date: Apr 2005
Posts: 68
j.gohel is on a distinguished road
Regarding the date obtained using java.util.Date class

Hi,

i am using the date obtained using java.util.Date class for my application.What i would like to know is that whether it gives the system date or some other date??

Because if its system date then obtaining the current date like that is useless for me as the user can change the system date & enter some other date??

So if its system date then what i should do onbtain the current date which can't be changed by the user??

Thanks,
Jignesh
j.gohel is offline   Reply With Quote
Old 03-29-2006, 02:21 PM   #2 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,161
Belisarius is on a distinguished road
I assume this is still in a JSP/Servlet setup. The Date class will return the system date for the server on which the JSP/Servlet is being hosted. The end user's system will not enter into it.
__________________
GitS
Belisarius is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP5 Tips and tricks DJMaze PHP 11 05-20-2006 05:32 PM
Class using a specific instance of another class? is this possible? abs Standard C, C++ 5 02-08-2005 03:12 PM
to put data methods inside class or not? sde Java 2 05-25-2004 04:09 PM


All times are GMT -8. The time now is 08:41 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting