I've been working on this for a long time and haven't quite found anything that fits what I need.

Right now, I have an array of dates- all of them look like this - 

> 
> Sun Mar 31 2013 00:00:00 GMT+0700 (ICT). 
> 
> 
> 

I'm looking for a way to convert that into 

> 
> 1364688000
> 
> 
> 

Only through Google Script.

How would you go about doing this?