store datetime in integer.