# How to edit StartTime and EndTime of an Historical Production run without using MES value editor (Ignition + Sepasoft)

**URL:** <https://forum.inductiveautomation.com/t/how-to-edit-starttime-and-endtime-of-an-historical-production-run-without-using-mes-value-editor-ignition-sepasoft/102808>\
**Category:** General Discussion\
**Created:** [February 24, 2025, 5:45pm UTC](https://forum.inductiveautomation.com/t/how-to-edit-starttime-and-endtime-of-an-historical-production-run-without-using-mes-value-editor-ignition-sepasoft/102808 "2025-02-24T17:45:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sanath\_Hebbar\_P](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@Sanath\_Hebbar\_P](https://forum.inductiveautomation.com/u/Sanath_Hebbar_P)\
**Post date:** [February 24, 2025, 5:45pm UTC](https://forum.inductiveautomation.com/t/how-to-edit-starttime-and-endtime-of-an-historical-production-run-without-using-mes-value-editor-ignition-sepasoft/102808/1 "2025-02-24T17:45:22Z")

</div>

Hi everyone,

I'm looking for a method to edit the **StartTime** and **EndTime** of a historical **Production Run** using a Sepasoft MES script. The **MES Value Editor** allows changes by selecting different `tagCollectors` types, but I need a script-based approach for automation.

I found a reference script([Link](https://docs.sepasoft.com/articles/#!knowledge-base/how-to-change-dates-of-an-operation-after-production-run-3-0)) in the Sepasoft manual that modifies `newStartDate`, but it doesn’t provide an option to update the `endTime` accurately. I have a UI with the following fields:

- **WorkOrder**
- **Product Code**
- **StartDate**
- **EndDate**
- **Infeed**
- **Outfeed**
- **Reject**

My goal is to modify the **StartDate** and **EndDate** fields programmatically. Does anyone have a working script or an alternative method to achieve this?

Any help would be greatly appreciated!

Thanks!
