Results 1 to 3 of 3
Thread: Displaying date
- 07-14-2009, 07:53 AM #1
Displaying date
Hi pple,
I just encountered a problem while trying to display date
Am usingand displaying it on a lable like thisDate time = new Date();The date is displayed like thisjLabel3.setText(new Date().toString());But i want it displayed likeTue Jul 14 08:00:09 CEST 2009Is this possible and if yes how can i do it?Tue July 2009 14 08:00:09
cheerz!We Learn Through Mistakes..,
Manfizy:rolleyes:
- 07-14-2009, 09:16 AM #2
Use the SimpleDateFormat class.
- 07-14-2009, 10:19 AM #3
Similar Threads
-
java.util.Date vs java.sql.Date
By Jack in forum New To JavaReplies: 5Last Post: 10-28-2010, 02:59 PM -
Displaying image in same jsp
By SreenivasGurramkonda in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 12-08-2008, 06:01 AM -
Compare date input to database with current date
By hungleon88 in forum Advanced JavaReplies: 2Last Post: 11-25-2008, 08:10 AM -
Creating a Gregorian Calendar using a Date object gives date - 1
By prachi_goliwadekar in forum New To JavaReplies: 1Last Post: 05-08-2008, 08:32 PM -
Difference between current date and anothe date
By vijay balusamy in forum New To JavaReplies: 1Last Post: 04-16-2008, 04:15 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks