# Change cell color based on time

**URL:** <https://forum.inductiveautomation.com/t/change-cell-color-based-on-time/80781>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [October 20, 2023, 6:38pm UTC](https://forum.inductiveautomation.com/t/change-cell-color-based-on-time/80781 "2023-10-20T18:38:08Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [October 20, 2023, 6:49pm UTC](https://forum.inductiveautomation.com/t/change-cell-color-based-on-time/80781/5 "2023-10-20T18:49:19Z")

</div>

> [@Brad\_Mills](#):
>
> Perspective

Please add the tag. Use the 🖉 edit link beside your question title and select Perspective from the dropdown.

You say that you wish to compare times (presumably date-time) but your expression shows that you are comparing dataQuality and text. Do those components hold timestamp values or what?

Tip: post code rather than pictures of code so we can copy it into our expression editor, etc., and our answers.

> [@Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831):
>
> This thread is intended as a short help file for all those struggling to post formatted code on the forum. Posting formatted code on the forum (and most others) is as simple as selecting the code and pressing the \</\> button. It works the same as applying Bold or Italic styles to your document. It preserves indentation and applies syntax highlighting. [How to post code]

---

_[View the full topic](https://forum.inductiveautomation.com/t/change-cell-color-based-on-time/80781)._
