How to Format value from Date Picker with Hubl Filter?


#1

I am trying to use the “datetimeformat” filter on a contact field of the Date picker field type. The issue I’m having is the filter is not recognizing the value of the property as a datetime data type, which I’m assuming it requires in order to work properly.

Here is an example of how I’m using it trying to display the month:

{{ contact.appointment_date | datetimeformat('%B') }}

The value of {{ contact.appointment_date }} without any filtering displays as mm/dd/yyyy format.
I feel as though I can’t be the only one experiencing this issue but I cant find any documentation on it either.

Any help is appreciated.

Thank you,
Josh


#2

I am also curious about this. I was debugging the datetime objects that Hubspot sets on blog posts and the raw output looks like this:

{% raw %}(PyishDate: 2017-03-28 12:40:45){% endraw %}```