fix parsing date for date, datetime input filed (for some locales)