The following illustration shows how a date picker looks when it is selected in design mode.

Controls can be bound or unbound. When a control is bound, it is connected to a field or group in the data source so that data entered into the control is saved in the underlying form (.xml) file. When a control is unbound, it is not connected to a field or group, and data entered into the control is not saved. When you select or move your pointer over a control, text and a binding icon appear in the upper-right corner of the control. The text indicates the group or field to which the control is bound in the data source. The icon indicates whether the control is correctly bound to that group or field. When the binding is correct, a green icon appears. If there's something wrong with the binding, you'll see a blue or red icon instead.

The data source for the form template consists of fields and groups that appear in a hierarchical view in the Data Source task pane. Date picker controls are always bound to fields. In the following example, the Departure date date picker on the form template is bound to the departureDate field in the Data Source task pane.

Insert a date picker on a new, blank form template

When you design a new, blank form template, the Automatically create data source check box in the Controls task pane is selected by default. This enables InfoPath to automatically create fields and groups in the data source as you add controls to the form template. These fields and groups are represented by folder and file icons in the Data Source task pane.

  1. On the form template, place the cursor where you want to insert the control.
    Subject to availability where the recipient resides.
    The game pdf
  2. If the Controls task pane is not visible, click More Controls on the Insert menu, or press ALT+I, C.
  3. Under Insert controls, click Date Picker.
  4. To add a label to the control, type text above or to the left of the control, followed by a colon (:).
  5. To specify the way that the date is displayed on the form, double-click the date picker that was inserted on the form template.
  6. Click the Data tab, and then click Format.
  7. In the Display the date like this list, in the Date format dialog box, click the display format that you want.
    Note: You can change the display format of the date only if the data type is text, date, or date and time.

Insert a date picker on a form template that is based on an existing data source

If you base the design of your form template on an existing Extensible Markup Language (XML) file, database, or Web service, InfoPath derives the fields and groups in the Data Source task pane from that existing data source. In this scenario, you can add a date picker either by dragging a date picker field from the Data Source task pane onto the form template or by inserting the date picker by using the Controls task pane, as described in the following procedure:

  1. On the form template, place the cursor where you want to insert the control.
  2. If the Controls task pane is not visible, click More Controls on the Insert menu, or press ALT+I, C.
  3. Under Insert controls, click Date Picker.
  4. In the Date Picker Binding dialog box, select the field in which you want to store the date picker data, and then click OK.
  5. InfoPath uses the name of the field or group as the control's label. If necessary, change the label text.
  6. To specify the way that the date is displayed on the form, double-click the date picker that was inserted on the form template.
  7. On the Data tab, click Format.
  8. In the Display the date like this list box, in the Date format dialog box, click the display format that you want.
    Note: You can change the display format of the date only if the data type is text, date, or date and time.
Date
Tip: You can also use the Data Source task pane to insert controls. In the Data Source task pane, right-click the field that you want to bind the date picker to, and then click Date Picker on the shortcut menu.

Display the current date in a date picker

To automatically insert the current date on a form when users open it, you can use the today function with a date picker control.

  1. Insert a date picker on the form template.
  2. Double-click the date picker that you inserted on the form template.
  3. Click the Data tab.
  4. Under Default Value, click Insert Formula .
  5. In the Insert Formula dialog box, click Insert Function.
  6. In the Categories list in the Insert Function dialog box, click Date and Time.
  7. In the Functions list, click today, and then click OK twice to return to the Date Picker Properties dialog box.
    Notice that today() appears in the Value box.
  8. Under Default Value, clear the Update this value when the result of the formula is recalculated check box.
    Note: If you clear this check box, the date isn't updated automatically each time a user opens a form based on this form template. This is ideal in situations where you want users to see the date when the form was created. You can leave the check box selected in situations where you have a Last updated on or Last opened on field, where you want the date to change every time the form is opened.
    Wizardry gold download. The player could use the mouse or keyboard to navigate the user interface.
  9. Click OK to return to the form template.
  10. To test your changes, click Preview on the Standard toolbar, or press CTRL+SHIFT+B.
  11. Verify that the date that appears in the date picker looks the way that you want it to. If it doesn't, you can change how the date or time is displayed by clicking the Format button in the Date Picker Properties dialog box.

Display the current date and time in a date picker

To automatically insert the current date and time on a form when users open it, you can use the now function with a date picker control.

  1. Insert a date picker on the form template.
  2. Double-click the date picker that you inserted on the form template.
  3. Click the Data tab.
  4. In the Data type box, click Date and Time (dateTime).
  5. Click Format.
  6. In the Date and Time Format dialog box, in the Display the time like this list, click the option that you want, and then click OK.
  7. In the Date Picker Properties dialog box, under Default Value, click Insert Formula .
  8. In the Insert Formula dialog box, click Insert Function.
  9. In the Categories list in the Insert Function dialog box, click Date and Time.
  10. In the Functions list, click now, and then click OK twice to return to the Date Picker Properties dialog box.
    Notice that now() appears in the Value box.
  11. Under Default Value, clear the Update this value when the result of the formula is recalculated check box.
    Note: If you clear this check box, the date isn't updated automatically each time a user opens a form based on this form template. This is ideal in situations where you want users to see the date when the form was created. You can leave the check box selected in situations where you have a Last updated on or Last opened on field, where you want the date to change every time the form is opened.
  12. Click OK to return to the form template.
  13. To test your changes, click Preview on the Standard toolbar, or press CTRL+SHIFT+B.
  14. Verify that the date that appears in the date picker looks the way that you want it to. If it doesn't, you can change how the date or time is displayed by clicking the Format button in the Date Picker Properties dialog box.

Layout tips

Use the following tips to help you refine the appearance, size, and other aspects of a date picker:

Active1 month ago
I use Excel from Office 365 and want to use date picker form. Unfortunately, it is not listed in the list of additional controls (More Controls). How to include it into spreadsheet that I am developing? Is there something that I need to download and install?
Community
MaciejMaciej

1 Answer

I'm going to make the assumption you're using this add-in.
If that's the case, the installation is fairly easy. It depends on what OS you're using, though.
Here's what the website states:
1) Download the RDB Date Picker add-in.
2) Copy WinDatePicker.xlam to a unprotected directory on your system.
3) Start Excel and open a workbook.
2007: Click the Microsoft Office Button, click Excel Options, click the Add-Ins tab.
2010-2016: Click on File, click on Options, click the Add-ins tab.

In the Manage drop-down, choose Excel Add-ins, and click Go. Use 'Browse' to select the add-in and then click on OK. Verify that the Date Picker is checked in the add-in list and then click OK.
4) Right click on a worksheet cell and choose Date Picker to open the user form.
That should work, if not, please tell me. Also, tell me if you used another date picker.
ChuchoterChuchoter

Not the answer you're looking for? Browse other questions tagged excelformsexcel-vbavba or ask your own question.