Java: Calendar class: Time: Wed Aug 15 13:40:29 MST 2012 -> how do I remove Wed Aug 15 from my time?

Hello Experts,

The code below,

Calendar calendar = Calendar.getInstance();
		Date time = calendar.getTime(); 	
		System.out.println("Time: " + time );

Open in new window


returns:
Time: Wed Aug 15 13:40:29 MST 2012

How do I set or remove: Wed Aug 15.... and MST 2012
I want my time to be set as: 13:06:10.903

In advance, thanks for your help...

Regards,
epifanio67Asked:
Who is Participating?
 
krakatoaConnect With a Mentor Commented:
See SimpleDateFormat.
0
 
epifanio67Author Commented:
Thank you...
Regards,
0
 
krakatoaCommented:
Pleasure.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.