How to replace a time value

I've struggled to change a certain of time value for almost one day, which is turning the "12:00:00 AM"

Now I am trying to use "Generate Macro", but I have no idea how to write the function expression, could you please tell me?
Sincerely,
Starfish
Find more posts tagged with
Sort by:
1 - 1 of
11
Sort by:
1 - 1 of
11
Hi @Starfish,
you can use the Generate Attributes to create a new attribute and use an if statement with date_get method and DATE_UNIT_HOUR to extract the date hour, compare it with your target value and replace it with the new value.
if(date_get([Date], DATE_UNIT_HOUR)==9,(date_set([Date],10, DATE_UNIT_HOUR )),date_get([Date], DATE_UNIT_HOUR))
Best,
Cesar
Best,
Cesar
Best,
Cesar