Documentation Vision Library+ Documentation

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

DateTime Picker+ with production days grouped by month and the selected day in the time bar

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.

  1. Select DateTime Picker+ in the PI Vision symbol gallery and drag a PI Point or AF attribute onto the display.
  2. Right-click the symbol and select Configure Date Picker....
  3. 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).
  4. Close the configuration pane. The symbol shows seven buttons, from Today to 6 Days ago.
  5. Select Yesterday. The time bar shows yesterday from midnight to midnight.
Source group with Quick Start, Label Format and Number of Periods marked
Seven buttons with Yesterday selected and the time bar showing 10/8/2026 to 10/9/2026

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.

  1. Right-click the symbol and select Configure Date Picker....
  2. Under Source, set Mode (1) to Calendar.
  3. Set the calendar Mode (2) to Date Range for one input with two days, or to Start & End Time for two inputs.
  4. 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.
Source group with Calendar mode, Date Range and the reset button marked

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.

Calendar with October 5 to 8 selected and the time bar showing the same range

Offer named ranges such as Last 8 hours

Use this when the ranges are not regular periods, or when operators know them by name.

  1. Right-click the symbol and select Configure Date Picker....
  2. Under Source, set Mode (1) to List.
  3. Select Add (2) to create an entry. The new entry is selected.
  4. Enter the button text in Label (3).
  5. Enter the range in Start Time (4) and End Time (5) as PI time expressions, for example *-8h and *.
List mode with the Last 8 hours entry selected and its label, start and end marked

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.

Five named range buttons with Last 8 hours selected and the time bar showing eight hours

Select production days that run from 06:00 to 06:00

Use this when your day does not start at midnight.

  1. Right-click the symbol and select Configure Date Picker....
  2. Under Source, set Mode to Periods.
  3. Set Period (1) to 1 and Day, and set Align To (2) to Day.
  4. Set Offset (3) to 6 and Hour. Every period now starts six hours after midnight.
  5. Select a Label Format (4), for example 09 Oct.
  6. Set Group By to OFF for one flat row, or to Month to group the days.
Source group with Period, Align To, Offset and Label Format marked

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

Day buttons with 09 Oct selected and the time bar from 6:00 AM to 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.

  1. Right-click the symbol and select Configure Date Picker....
  2. Under Source, use Mode Periods with a Period of 1 day, and set Group By to OFF.
  3. Under Layout, set View to Dropdown.
  4. Under Behavior, turn on Navigation Arrows (1).
Behavior group with Navigation Arrows turned on

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.

Drop-down list on 08 Oct with arrows on both sides, and the time bar showing October 8

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.

  1. Drag the PI Point that records the shift name onto the symbol. A string or digital point works.
  2. Right-click the symbol and select Configure Date Picker....
  3. Under Source, set Mode (1) to the data source option, the third entry in the list.
  4. Set Start Time and End Time to the window to read, for example *-7d and *. Keep the data retrieval Mode on Recorded.
  5. Set Label (2) to Value so each button shows the shift name.
  6. Set Number of Periods (3), and set Skip Most Recent (4) to 1 to hide the period that is still running.
  7. Set Group By (5) to Day.
Source group in data source mode with Mode, Label, Number of Periods, Skip Most Recent and Group By marked

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.

Shift buttons grouped by day with Shift A on 08 Oct selected and the time bar from 8:00 AM to 4:00 PM

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

Day buttons grouped by month with callouts for the group, the selected day, another day and the time bar
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.

PresetWhat it sets
Last 7 daysPeriods of one day aligned to the day, 7 items with relative labels, no grouping, buttons.
Shift days from 06:00Days with a 6 hour offset, 14 items labeled like 09 Oct, grouped by month, buttons. See Select production days.
Months of this yearMonths, 12 items labeled with the month name, grouped by year, drop-down list.
WeeksWeeks, 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

SettingWhat it does
ModeWhere 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).
PeriodPeriods mode. How long each item covers, as a value and a unit.
Align ToPeriods mode. The boundary each period starts on, from Minute to Year.
FiltersList 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 TimeList 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 CoversSingle Date only. How long a clicked day covers. One day by default.
Include Time of DayStart & End Time only. Adds a time part to both inputs for an exact start and end.
Allow Typing, Allow FutureLet operators type a date, and allow dates after today.
Reset Button, Default Range, Align ToAdds 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.

SettingWhat it does
OffsetShifts every period start by a fixed duration. Periods and Calendar mode. Used in production days.
Label FormatThe date pattern of the item labels. Periods mode, and data source mode when Label is not Value.
Show End Time in LabelAdds the period end to the label so an item reads as a range. Periods mode.
Number of PeriodsHow many items are generated. Periods and data source mode.
Skip Most RecentLeaves 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 OrderLists 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 ByGroups items under a heading of the chosen unit. OFF gives one flat list. Periods and data source mode.

Selection

SettingWhat it does
Auto-Select Default ItemApplies one item's range when the display loads. Only the first picker on a display applies its default.
Default ItemThe 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 RangeWhen 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' ItemAdds one item covering the whole generated window. Periods and data source mode.

Behavior

SettingWhat it does
Include End TimeOn (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 ArrowsAdds 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 TimebarHides the PI Vision time bar while the display is open. The bar returns when the last picker that asked for this is gone.

Style

SettingWhat it does
ThemeA shared Vision Library+ preset. Select Custom Theme to set the colors yourself.
SurfaceFlat or Gradient. A gradient needs a container to show through.
Container StyleThe 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, AccentAvailable with Custom Theme. The control background, the item fill, the text, the outline and the selected item color.
Group, Group HeaderAvailable with Custom Theme while Group By is set. The band behind each group and its heading row.

Layout

SettingWhat it does
ViewDropdown shows the items in a combo box. Buttons shows one button per item. Not offered in Calendar mode.
DirectionHorizontal 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 DirectionButtons view with Group By set. Horizontal puts the groups side by side, Vertical stacks them.
FitStretches the buttons across the short axis of the symbol. With more items than fit, the list scrolls.
WrapLets a horizontal row continue on further rows. Available while Fit is off.
AlignPlaces the buttons Left, Center or Right. Available while Fit is off.
DensityCompact, Normal or Large: the font size, the padding and the gap between buttons in one step.
Multi-state selectorData source mode. Chooses whether a multi-state colors the Background, Text or Border of an item.

Troubleshooting and limitations

SymptomCauseWhat 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.