aspose file tools*
The moose likes Beginning Java and the fly likes Date problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Date problem" Watch "Date problem" New topic
Author

Date problem

Dhiraj Srivastava
Ranch Hand

Joined: Aug 29, 2001
Posts: 49
I want to display only the current date in a text field can any one please help me
Thanks in advance
Dhiraj
Fred Abbot
Ranch Hand

Joined: Jun 01, 2000
Posts: 300
System.currentTimeMillis()
BJ Grau
Ranch Hand

Joined: Jul 10, 2001
Posts: 234
Or try this (or something like this) for outputting a formatted date:

SimpleDateFormat sdf = new SimpleDateFormat();
String daytime = sdf.format(new Date(System.currentTimeMillis()));
System.out.println(daytime);
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Date problem