added new method to the time cs to convert a date string into epoch time.