To work around this behavior, use a date that is in the
YYYY-MM-DD format when you set the rule. To do this, follow these steps:
- Start InfoPath 2007, click Design a Form Template, select Blank, and then click OK.
- Click Controls, and then add a Text Box control to the left pane. The default name of this field is field1.
- Double-click the text box, select Date (date) in the Date type drop-down list, and then click OK.
- Click the Format button.
- Select the format, for example 3/14/2001, and then click OK.
- Click OK one more time.
- Add a Button control to the left pane. The default name of this control is Button.
- Double-click Button, click Rules, and then click Add.
- Click Add Action, select Set a field's value in the drop-down list.
- Click the icon that is next to the Field text box, and then select field1.
- Type a validate format date, for example 2006-09-30, and then click OK.
- Click OK three times.
- Click Preview on the toolbar, and then click Button.
You will see 9/30/2006 shown in the date field.