format input date value to initial version