How to convert date format Sun Jul 13 2014 00:30:00 GMT+0530 (India Standard Time) to "YYYY-m-d"?
You could use strftime and strtotime functions like this:
strftime("%Y-%m-%d", strtotime("Sun Jul 13 2014 00:30:00 GMT+0530"))