<?xml version="1.0" encoding="utf-8"?>

Prevent wrong formats with date masks

Prevent wrong formats with date masks Bad Practice
Prevent wrong formats with date masks Best Practice

Considering the fact that users in different countries format dates differently, input masks are really essential. For example, most of the world uses the DD/MM/YYYY format, while the USA uses MM/DD/YYYY instead. Adding a date mask helps avoid confusion and ensures that dates are uniform.

Pro Tip: If possible, use the default date and time format according to each user's location and settings.

Improve your UX & Product skills with interactive courses that actually work