change code of specifying date string