How to reset a DateTime item?

Hi,

I’m updating a DateTime item using:

postUpdate(ItemName, new DateTimeType())

The item definition is:

DateTime ItemName “Time is [%1$tH:%1$tM]”

Question is, how do I reset it (i.e. back to null?) so the UI will show “-:-” as the time. To clarify, I don’t want to set it to “00:00” as that’s a valid time.

Thanks for any help! :smile:

Did you try the following?

postUpdate(ItemName, "") or
postUpdate(ItemName, "null")

but i get this

Update the Item with NULL or UNDEF.