DateTime Picker+
DateTime Picker+ lets operators set the PI Vision display time range with one click, from buttons or a drop-down list of days, shifts and weeks, from a named list of ranges, or from a calendar. Every symbol on the display that follows the display time range refreshes to the range the operator picks.
Overview

When to use it
Use this symbol when you need to:
- Let operators choose a day, week, month or production day with one click instead of typing times in the PI Vision time bar.
- Offer named ranges such as Yesterday or Last 8 hours.
- Let operators pick a start and end date from a calendar.
- Step the range to the previous or next day with arrows.
- Turn the recorded values of a data source, such as a shift name, into selectable periods.
- Open a display on a known range every time.
If operators only need to nudge the current range backward and forward, the standard PI Vision time bar is enough.
Before you begin
- Decide which periods the display needs, how long each one is and which boundary it starts on.
- The symbol takes one data source. Only the data source mode reads its values: use a PI Point or AF attribute whose values mark the start of each period, such as a shift name written at every shift change.
- To color those periods by status, add a multi-state to the same data source.
Add and set up the symbol
This quick start builds a row of buttons for the last seven days.
- Select DateTime Picker+ in the PI Vision symbol gallery and drag a PI Point or AF attribute onto the display.
- Right-click the symbol and select Configure Date Picker....
- Under Source, open Quick Start (1) and select Last 7 days. The pane fills in the label format (2) and the number of periods (3).
- Close the configuration pane. The symbol shows seven buttons, from Today to 6 Days ago.
- Select Yesterday. The time bar shows yesterday from midnight to midnight.


Every item you select applies its range to the display. You can change everything a quick start writes in the rows below it.
Common tasks
Pick a start and end from a calendar
Use this when operators need any range, not a fixed list of periods.
- Right-click the symbol and select Configure Date Picker....
- Under Source, set Mode (1) to Calendar.
- Set the calendar Mode (2) to Date Range for one input with two days, or to Start & End Time for two inputs.
- Turn on Reset Button (3) to add a clock button that returns the display to a default range. Default Range sets how far back it goes, and Align To sets the boundary it starts on.

Operators click the input, then the first day and the last day. The display range starts at the beginning of the first day and ends at the beginning of the second day, so picking October 5 and October 8 gives October 5 to October 8 at 12:00 AM. To include a whole last day, pick the following day. With Start & End Time and Include Time of Day on, the operator sets an exact time for each end.

Offer named ranges such as Last 8 hours
Use this when the ranges are not regular periods, or when operators know them by name.
- Right-click the symbol and select Configure Date Picker....
- Under Source, set Mode (1) to List.
- Select Add (2) to create an entry. The new entry is selected.
- Enter the button text in Label (3).
- Enter the range in Start Time (4) and End Time (5) as PI time expressions, for example
*-8hand*.

Each entry becomes a button, in list order. Use the arrows under the list to reorder entries. Selecting Last 8 hours applies the last eight hours to the display, ending now.

Select production days that run from 06:00 to 06:00
Use this when your day does not start at midnight.
- Right-click the symbol and select Configure Date Picker....
- Under Source, set Mode to Periods.
- Set Period (1) to 1 and Day, and set Align To (2) to Day.
- Set Offset (3) to 6 and Hour. Every period now starts six hours after midnight.
- Select a Label Format (4), for example 09 Oct.
- Set Group By to OFF for one flat row, or to Month to group the days.

Each button covers one production day. Selecting 09 Oct sets the range from 10/9 6:00 AM to 10/10 6:00 AM.

The quick start Shift days from 06:00 writes these settings for you. Turn Include End Time off to end each day at 5:59:59 AM instead of 6:00:00 AM.
Step through days with arrows
Use this when operators compare one day with the day before it.
- Right-click the symbol and select Configure Date Picker....
- Under Source, use Mode Periods with a Period of 1 day, and set Group By to OFF.
- Under Layout, set View to Dropdown.
- Under Behavior, turn on Navigation Arrows (1).

Two arrows appear beside the drop-down list. The left arrow always selects the earlier period and the right arrow the later one, and each click moves the display range. A single-date calendar offers the same arrows.

Select a shift from recorded values
Use this when a PI Point records the current shift or batch name, and operators want to see the data of one shift.
- Drag the PI Point that records the shift name onto the symbol. A string or digital point works.
- Right-click the symbol and select Configure Date Picker....
- Under Source, set Mode (1) to the data source option, the third entry in the list.
- Set Start Time and End Time to the window to read, for example
*-7dand*. Keep the data retrieval Mode on Recorded. - Set Label (2) to Value so each button shows the shift name.
- Set Number of Periods (3), and set Skip Most Recent (4) to 1 to hide the period that is still running.
- Set Group By (5) to Day.

Each recorded value becomes one button, and it covers the time from that value to the next one. Select Shift A in the 08 Oct group and the display shows exactly that shift.

The quick start Shift tag (data source) applies these settings in one step. To color the buttons by status, add a multi-state and choose what it colors with the multi-state selector at the end of Layout.
Use the symbol

| What it shows | |
|---|---|
| (1) | The group heading. Group By collects periods under a month, week, day or other heading. |
| (2) | The selected item, in the accent color. It is the range the display shows. |
| (3) | Another item. Select it to apply its range. |
| (4) | The start of the display time range in the PI Vision time bar. |
| (5) | The end of the display time range. |
- Select an item to apply its range to the display. Every symbol that follows the display time range refreshes. Nothing is written to the PI System.
- Use the arrows. They step to the earlier or later item, or to the previous or next day in a single-date calendar.
- Pick from the calendar. A date or range applies as soon as it is chosen. The clock button next to the input returns the display to the default range.
- Open a display on a range. With Auto-Select Default Item on, the picker applies one item when the display loads. If the display link carries a start or end time, as report links do, the picker leaves that range alone.
A single-date calendar always shows the start of the display range, so it keeps showing the picked day even after another symbol changes the display time.
Configure the symbol
All settings are on one General panel in five groups: Source, Selection, Behavior, Style and Layout.
Quick Start
Quick Start, at the top of Source, is an action, not a setting. It writes a complete working combination of settings and returns to Select, so you can apply the same preset again. Everything it writes stays editable.
| Preset | What it sets |
|---|---|
| Last 7 days | Periods of one day aligned to the day, 7 items with relative labels, no grouping, buttons. |
| Shift days from 06:00 | Days with a 6 hour offset, 14 items labeled like 09 Oct, grouped by month, buttons. See Select production days. |
| Months of this year | Months, 12 items labeled with the month name, grouped by year, drop-down list. |
| Weeks | Weeks, 8 items labeled with calendar week and year, grouped by month, drop-down list. |
| Shift tag (data source) | Data source mode, recorded values from *-7d to *, labeled with the value, grouped by day, drop-down list. |
Source
| Setting | What it does |
|---|---|
| Mode | Where the items come from: Periods (rolling periods ending now), List (named ranges you type), the data source option (one period per recorded value) or Calendar (a date input instead of an item list). |
| Period | Periods mode. How long each item covers, as a value and a unit. |
| Align To | Periods mode. The boundary each period starts on, from Minute to Year. |
| Filters | List mode. The named ranges. Add creates one, and the controls under the list reorder or remove the selected entry. See Offer named ranges. |
| Label, Start Time, End Time | List mode. The button text and the PI time expressions the entry applies. |
| Mode (data retrieval) | data source mode. Recorded makes one period per recorded value. Interpolated makes evenly spaced periods and adds Interval and Sync Time. |
| Start Time, End Time (data source) | data source mode. The range the values are read from. |
| Label (data source) | data source mode. Names each item after its Value, Start Time or End Time. With a time, Label Format sets the pattern. See Select a shift. |
| Mode (calendar) | Single Date for one day, Date Range for two days in one input, Start & End Time for two inputs. See Pick a start and end. |
| Selected Day Covers | Single Date only. How long a clicked day covers. One day by default. |
| Include Time of Day | Start & End Time only. Adds a time part to both inputs for an exact start and end. |
| Allow Typing, Allow Future | Let operators type a date, and allow dates after today. |
| Reset Button, Default Range, Align To | Adds a clock button that applies the default range. Default Range and Align To appear while it is on. |
These rows sit under Items and are offered only where they apply.
| Setting | What it does |
|---|---|
| Offset | Shifts every period start by a fixed duration. Periods and Calendar mode. Used in production days. |
| Label Format | The date pattern of the item labels. Periods mode, and data source mode when Label is not Value. |
| Show End Time in Label | Adds the period end to the label so an item reads as a range. Periods mode. |
| Number of Periods | How many items are generated. Periods and data source mode. |
| Skip Most Recent | Leaves out that many of the newest periods and still generates the configured number. Set 1 to hide the running period. Periods and data source mode. |
| Reverse Order | Lists items oldest first. With Group By set, groups and items both run oldest first, and the All item stays first. Periods and data source mode. |
| Group By | Groups items under a heading of the chosen unit. OFF gives one flat list. Periods and data source mode. |
Selection
| Setting | What it does |
|---|---|
| Auto-Select Default Item | Applies one item's range when the display loads. Only the first picker on a display applies its default. |
| Default Item | The position of the item to select, counting from 1 at the start of the list as displayed. Available when Auto-Select Default Item is on, outside Calendar mode. |
| Follow Latest Time Range | When a rolling period rolls over, applies the Default Item again so the display moves on with the list; off (the default) keeps the range the operator is viewing. Available in Periods mode while Auto-Select Default Item is on. |
| Show 'All' Item | Adds one item covering the whole generated window. Periods and data source mode. |
Behavior
| Setting | What it does |
|---|---|
| Include End Time | On (the default) ends a period exactly on its boundary, such as the next midnight. Off ends it one second earlier, at 23:59:59. A List item always applies the end time typed for it. Periods, data source and Calendar mode. |
| Navigation Arrows | Adds arrows to step to the previous or next item. Available for a Periods drop-down list and a single-date calendar. See Step through days. |
| Hide Timebar | Hides the PI Vision time bar while the display is open. The bar returns when the last picker that asked for this is gone. |
Style
| Setting | What it does |
|---|---|
| Theme | A shared Vision Library+ preset. Select Custom Theme to set the colors yourself. |
| Surface | Flat or Gradient. A gradient needs a container to show through. |
| Container Style | The frame around the control. None is the default and draws no background. Flat, Card, Framed and Glass draw the shared container. |
| Surface, Items, Text, Border, Accent | Available with Custom Theme. The control background, the item fill, the text, the outline and the selected item color. |
| Group, Group Header | Available with Custom Theme while Group By is set. The band behind each group and its heading row. |
Layout
| Setting | What it does |
|---|---|
| View | Dropdown shows the items in a combo box. Buttons shows one button per item. Not offered in Calendar mode. |
| Direction | Horizontal lays items out in a row, Vertical in a column. It also lays out the two combo boxes of a grouped drop-down list. |
| Group Direction | Buttons view with Group By set. Horizontal puts the groups side by side, Vertical stacks them. |
| Fit | Stretches the buttons across the short axis of the symbol. With more items than fit, the list scrolls. |
| Wrap | Lets a horizontal row continue on further rows. Available while Fit is off. |
| Align | Places the buttons Left, Center or Right. Available while Fit is off. |
| Density | Compact, Normal or Large: the font size, the padding and the gap between buttons in one step. |
| Multi-state selector | Data source mode. Chooses whether a multi-state colors the Background, Text or Border of an item. |
Troubleshooting and limitations
| Symptom | Cause | What to do |
|---|---|---|
| The range is not what you expected. | Period, Align To, Offset or Include End Time differs from what you assumed, or the display time zone differs. | Check these settings and the time zone the display is read in. |
| A date range ends at midnight of the second day. | In Date Range, the second picked day is the end of the range. | Pick the day after the last day you want. |
| The items look transparent. | Surface is Gradient and Container Style is None. | Select another Container Style, or set Surface to Flat. |
| A second picker does not highlight its default item. | The first picker to load owns the display range. | Select an item in the second picker; it applies at once. |
| The picker does not apply its default item. | The display link carries a start or end time. | Remove the time parameters from the link, or select an item. |
| A data source picker shows an item such as No Data. | The newest recorded value is that value, and each value is one item. | Set Skip Most Recent to 1, or shorten the range. |
| Navigation Arrows is not offered. | Only a Periods drop-down list and a single-date calendar can use them. | Set View to Dropdown, or use a single-date calendar. |
A unit shows as a code such as mo. | The shared duration control uses mo for month and m for minute. | Read mo as month. |
Limitation: The picker changes the display time range for everything that follows it. It cannot change the range of selected symbols only.
Limitation: Wrap and Align are hidden while Fit is on, because fitted items already fill their axis.
