Avoided some constants in datetime conversioning