# Dropdown Datetimes from Dataset Displaying in Unix Time

**URL:** <https://forum.inductiveautomation.com/t/dropdown-datetimes-from-dataset-displaying-in-unix-time/105140>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [April 15, 2025, 8:48pm UTC](https://forum.inductiveautomation.com/t/dropdown-datetimes-from-dataset-displaying-in-unix-time/105140 "2025-04-15T20:48:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 15, 2025, 9:10pm UTC](https://forum.inductiveautomation.com/t/dropdown-datetimes-from-dataset-displaying-in-unix-time/105140/2 "2025-04-15T21:10:25Z")

</div>

Browsers don't have fundamental datetime data types. So Ignition is forced to transmit timestamps in datasets or other date objects in the only loss-less format possible: the underlying UTC milliseconds.

Many Ignition components that expect datetime values automatically render them in the session timezone, and parse input in the session timezone. Other components, like the table, can be configured to recognize timestamps in specific columns.

The dropdown component doesn't have this capability. You will need to stringify the labels (not the values) for your user, applying the session time zone. This somewhat deep topic provides some tools for this:

> [@Ignition Perspective Page to show the client System date and time](https://forum.inductiveautomation.com/t/ignition-perspective-page-to-show-the-client-system-date-and-time/73265/8):
>
> Sure. I recommend [DateTimeFormatter.ofPattern()](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/time/format/DateTimeFormatter.html#ofPattern(java.lang.String)). But I would move the complexity to a project script module with a DateTimeFormatter instance with your preferred pattern saved as a top level variable. Like so, perhaps: from java.time import ZoneId from java.time.format import DateTimeFormatter defaultFormatter = DateTimeFormatter.ofPattern("YYYY-MM-dd HH:mm") def zonedFormat(ts, zoneid, format=None): formatter = defaultFormatter if format is None else DateTimeFormatter.ofPattern(format) r…

---

_[View the full topic](https://forum.inductiveautomation.com/t/dropdown-datetimes-from-dataset-displaying-in-unix-time/105140)._
