Apply date format when change date