Community & Support
Learn
Marketplace
Menu
Menu
Home
›
Discussions
›
Community Q&A
Sysntaxis Error on Expression Date_diff and Time_diff
Oktii
New Altair Community Member
Jul 6, 2023
Updated
Nov 5, 2024
by
Jocelyn
date_diff(`M1 Inicio`, `M1 Final`, DATE_UNIT_HOUR, "America/Mexico_City"
)
Find more posts tagged with
AI Studio
All Replies
Accepted Answers
Sort by:
Sort by
Oldest
▾
1 - 3 of 3
↑
1
↑
Oktii
New Altair Community Member
OP
Jul 6, 2023
I tray differnt formats a on this expession without sucess
BalazsBaranyRM
New Altair Community Member
Accepted Answer
Jul 7, 2023
Hi!
You need to call date_diff like this:
date_diff([M1 Inicio], [M1 Final], ...)
The attribute names can't be quoted with the single quotes you're using, only with [].
You can click attribute names in the list on the right side, they will be inserted correctly by Generate Attributes.
Regards,
Balázs
Oktii
New Altair Community Member
OP
Jul 7, 2023
thanks
Sort by:
Sort by
Oldest
▾
1 - 1 of 1
↑
1
↑
BalazsBaranyRM
New Altair Community Member
Accepted Answer
Jul 7, 2023
Hi!
You need to call date_diff like this:
date_diff([M1 Inicio], [M1 Final], ...)
The attribute names can't be quoted with the single quotes you're using, only with [].
You can click attribute names in the list on the right side, they will be inserted correctly by Generate Attributes.
Regards,
Balázs
View in context
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)