Can i add 2 hours to {{ getDate (getDate (slot item @root.slots.PUETA) "YYYY-MM-DDTHH:mm:ss.0000000\Z") "MMMM DD, YYYY h:mm a" 3 }} #3931
Unanswered
mvcsharepointdev
asked this question in
Q&A
Replies: 1 comment 2 replies
-
As per https://microsoft-search.github.io/pnp-modern-search/extensibility/templating/#getdate the function support what moment.js support. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have this formula inside PnP Modern Search web part:-
{{ getDate (getDate (slot item @root.slots.PUETA) "YYYY-MM-DDTHH:mm:ss.0000000\Z") "MMMM DD, YYYY h:mm a" 3 }}
to format a date time, and allow it to follow the time zone of the site.. my question is how i can add 2 hours to the generated date/time from the above formula?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions