I am getting Date in this format (Fri May 13 2011 19:59:09 GMT 0530 (India Standard Time) )
Please tell me how can i use Javascript split function , so that i can get only May 13 2011 ??
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.
You could
split()using space as the delimiter,slice()the required elements and thenjoin()again with a space.jsFiddle.