# Value of property before binding is executed in perspective

**URL:** <https://forum.inductiveautomation.com/t/value-of-property-before-binding-is-executed-in-perspective/93977>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 31, 2024, 1:36pm UTC](https://forum.inductiveautomation.com/t/value-of-property-before-binding-is-executed-in-perspective/93977 "2024-07-31T13:36:20Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [July 31, 2024, 2:40pm UTC](https://forum.inductiveautomation.com/t/value-of-property-before-binding-is-executed-in-perspective/93977/13 "2024-07-31T14:40:20Z")

</div>

That's not how `coalesce` works. `dateFormat` will never return a null, so `coalesce` won't do anything.  
try this instead:

```python
if (isNull({this.custom.datetime}),
  "loading...",
  dateFormat({this.custom.datetime}, 'dd-MM hh:mm')
)

```

I suggest you read this:

> [@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. Code block formatting 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] Note that all the \</\> button does is add three backticks ``` on the line before the code block and anot…

edit: that shift script looks funky to me. It seems dates are strings, but you're getting them from built-in features. There's something weird here.

edit again:  
yep they're strings:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/5/55b1307cd12029fe483357aaf9dffff0e811f070.png)  
I'm not sure what it's supposed to represent, and there's no details in the docs

---

_[View the full topic](https://forum.inductiveautomation.com/t/value-of-property-before-binding-is-executed-in-perspective/93977)._
