In PHP, you can easily convert an English textual datetime description into a proper date with strtotime().
strtotime()
Is there anything similar in Javascript?
Yes, it is. And it is supported in all major browser:
var ts = Date.parse("date string");
The only difference is that this function returns milliseconds instead of seconds, so you need to divide the result by 1000.
Check what valid formats can JavaScript parse.