# Cannot coerce value into type: class java.util.date

**URL:** <https://forum.inductiveautomation.com/t/cannot-coerce-value-into-type-class-java-util-date/91255>\
**Category:** Ignition\
**Tags:** vision, scripting\
**Created:** [June 2, 2024, 11:49pm UTC](https://forum.inductiveautomation.com/t/cannot-coerce-value-into-type-class-java-util-date/91255 "2024-06-02T23:49:14Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Ujwal\_Wankhede](https://avatars.discourse-cdn.com/v4/letter/u/4af34b/32.png) [@Ujwal\_Wankhede](https://forum.inductiveautomation.com/u/Ujwal_Wankhede)\
**Post date:** [June 3, 2024, 12:47am UTC](https://forum.inductiveautomation.com/t/cannot-coerce-value-into-type-class-java-util-date/91255/5 "2024-06-03T00:47:00Z")

</div>

Please read this tread

> [@How to obtain tag value from Qualified Value](https://forum.inductiveautomation.com/t/how-to-obtain-tag-value-from-qualified-value/62089/5):
>
> You’re requesting the tag values for a list, which is returned as a list of Qualified Values. A Qualified Value has all sorts of info including quality and the timestamp of the most recent change. You should modify your read to store only the value of the Qualified Value: ID = tag[0].value Edit: updated to reflect that you’re also getting a list of Qualified Values. Relevant code: def runAction(self, event): tags = system.tag.readBlocking(["[default]CylinderTag"]) system.perspective.print…

You should make following modification to code work  
`startDate = tagStartDate[0].value`

---

_[View the full topic](https://forum.inductiveautomation.com/t/cannot-coerce-value-into-type-class-java-util-date/91255)._
