fixed date time to int conversion and vice versa

Authored by sgerlach on Jul 23 2017, 4:46 PM.