Hey there! any question in your mind? Ask It Now!.

Popular Categories

get date in string format

+7 votes
asked in Programming by neha (560 points)

   in my table date is updating in this format 1395133877741 i need to get date in string formata in good format  by which user can understand. 

now code which is i am using 

java.util.Date date= new java.util.Date();


1 Answer

+1 vote
answered by Kaperly (1,610 points)
selected by neha
Best answer

you should use this , its very simple.

java.util.Date date= new java.util.Date();


This will print 

Tue Mar 18 14:41:17 IST 2014

i think this format is usefull for you.

commented by neha (560 points)
thanks Kaperly!

Related Questions

+6 votes
1 answer 2,895 views
+2 votes
1 answer 1,280 views
+3 votes
1 answer 911 views
–1 vote
0 answers 192 views
+3 votes
2 answers 1,980 views
+6 votes
2 answers 3,542 views

Not a Member yet?

Ask to Folks Login

My Account
254 Folks are online
0 members and 254 guest online
Your feedback is highly appreciated