everyone
my problem is that my JS code generates date in format
"Thu Jan 10 2013 00:00:00 GMT+0200 (FLE Standard Time)"
and I need to convert it to format like this
"2013-01-10"
either in JS or PHP, because I'm storing dates in DB in this format. My first thought was to convert it to timestamp, then timestamp convert to new date string, but date or string functions can't read that kind of date format, so propably need to pregreplace some things and thats it.