Added additional functionality to write from DateTime to Unix Timestamp. Made helper functions extensions so they can be more widely used in the application.