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 Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Date problem" Watch "Date problem" New topic

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
Fred Abbot
Ranch Hand

Joined: Jun 01, 2000
Posts: 300
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()));
I agree. Here's the link:
subject: Date problem
It's not a secret anymore!