# Reporting - datetime formating

**URL:** <https://forum.inductiveautomation.com/t/reporting-datetime-formating/93154>\
**Category:** Ignition\
**Tags:** reporting, perspective\
**Created:** [July 12, 2024, 4:14pm UTC](https://forum.inductiveautomation.com/t/reporting-datetime-formating/93154 "2024-07-12T16:14:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 12, 2024, 4:19pm UTC](https://forum.inductiveautomation.com/t/reporting-datetime-formating/93154/2 "2024-07-12T16:19:45Z")

</div>

If you can't/won't change the query to do the casting to a true date time type (this is the best place to do it) you'll need to use a script data source to rewrite the column using a system.date function to parse the millis into a Java Date object.

You could use a script like this to do the column update:

> [@Can I modify an entire column from a dataset with system.dataset.setValue()?](https://forum.inductiveautomation.com/t/can-i-modify-an-entire-column-from-a-dataset-with-system-dataset-setvalue/87043/3):
>
> def mapColumn(function, dataset, column): if isinstance(column, basestring): column = dataset.getColumnIndex(column) columnData = map(function, dataset.getColumnAsList(column)) columnsToKeep = range(dataset.columnCount) columnsToKeep.pop(column) dsWithoutColumn = system.dataset.filterColumns(dataset, columnsToKeep) return system.dataset.addColumn( dsWithoutColumn, column, columnData, dataset.getColumnName(column), dataset.getColumnType(column) ) It's relatively easy to…

---

_[View the full topic](https://forum.inductiveautomation.com/t/reporting-datetime-formating/93154)._
