Change how a date or time is displayed

Microsoft Office InfoPath

Show All Show All

Change how a date or time is displayed

  1. In design mode, right-click the date picker, text box, or expression box whose data you want to format, and then click Properties.
  2. On the Data tab or the General tab in the Properties dialog box, click Format.

    Note  You can specify how dates and times are displayed only for date pickers and text boxes that have a date, time, or date and time data type, or for expression boxes that are formatted as one of those data types.

  3. In the Format dialog box, do one or both of the following, depending on what you have chosen to format:
    • To format the date, click the display style you want in the Display the date like this list.
    • To format the time, click the display style you want in the Display the time like this list.

    Note  Display styles that have an asterisk will update based on the user's system settings.

  4. To change the locale date and time settings, click the region you want in the Locale list.

Note  Changing how a date or time is displayed affects only the displayed value, not the value that is saved in the data source.