datetime to Epoch?? - page 2

 
You can typecast most strings straight into datetime

e.g.

   string   dmy  = "09.09.2014 18:32:47";
   datetime when = (datetime)dmy;
   Print("dmy: ",when);

Result

dmy: 2014.09.09 18:32:47

   string   ymd  = "2014.09.09 18:32:47";
   datetime when = (datetime)ymd;
   Print("ymd: ",when);

Result

ymd: 2014.09.09 18:32:47


Reason: