Fix get date in form input