Change string type of date params on long type