when I use this:
var d=new Date();
var n=d.toLocaleString();
i get a result like:
Fri Nov 30 2012 17:02:03 GMT+0100 (Mitteleuropäische Zeit)
the problem: i just want to have s.th. like:
Fri Nov 30 2012 17:02:03
how to do it with javascript?
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.
There is a nice JavaScript library called DateJS that allows custom formatting and date manipulation and is free to use. I highly recommend it for such purposes. It even has language packs to display dates in your chosen language.