proper migration to new date storage format
use timeformat from framework, and set ems for date dependent on 24hour format