Casting a custom attribute as a date



  • Erin O'Callaghan
    Zendesk Documentation Team

    Hi @..., the code you wrote above is working as expected for me in my test instance (for example, I see 2021-09-14). One quick thing to double-check is that you've created this as a standard calculated attribute—if you've accidentally created it as a standard calculated metric, it'll return as blank. :) 

  • Chris Gould

    Hi @...S O'Callaghan,Yes the formula definitely works, however, I need to function as a date. Not just a normal attribute field.

    So I would like to apply ranges to it like you might with ticket created-date and ticket solved - date.

    For example: show me the "New attribute" for This month

  • Maryann Remy

    My understanding is that it's not possible to apply custom ranges to custom attributes based on all my research. I am still looking for a workaround so I don't have to manually update the filters if I am interested in looking at my custom date attribute for just last week as an example. 


Please sign in to leave a comment.

Powered by Zendesk