I have the date in the string format like this “Sat Sep 8 10:13:09 GMT+0530 2012”, can anybody help me how to convert this string date in to Date class object.
Share
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.
Try this code. Of course, I have modified as per your string, but you might have to modify the format little bit if it doesn’t work out.