When I print the new java.util.Date() it prints this in Android
Thu Feb 22 05:30:00 Asia/Calcutta 2007
I need this to be print as Thu Feb 22 05:30:00 IST 2007
please help
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Alright guys I got my problem solved. Here is the solution what I adapted
I had the date in format in dd-mm-yy which I need to convert like Thu Feb 22 05:30:00 IST 2007
so I just created the object of the
SimpleDateFormatclass with the desire format suiting the format Thu Feb 22 05:30:00 IST 2007 and finally calledformat()method onSimpleDateFormatinstance