slove input date problem