The correct answer is: A. By setting the input mask property to “yyyy/mm/dd”
An input mask is a control that helps users enter data in a specific format. For example, an input mask for a date field could be set to “yyyy/mm/dd”. This would ensure that users enter the date in the correct format, and would also prevent them from entering invalid dates.
The format property is used to specify the format in which data is displayed. For example, the format property for a date field could be set to “MM/DD/YYYY”. This would cause the date to be displayed in the month/day/year format.
Entering dates in yyyy, mm, dd order is not a reliable way to ensure that dates are stored in the correct format. This is because users may accidentally enter the date in the wrong order, or they may enter a date that is not in the correct format.
Therefore, the best way to make a date field store the dates like “2002/10/17” is to set the input mask property to “yyyy/mm/dd”.