Hey all,
Could anyone tell me how to check for the value of just the time (i.e hours, minutes, seconds) in a date field with a rule? Can't figure it out for the life of me...
Thanks in advance!
Hey all,
Could anyone tell me how to check for the value of just the time (i.e hours, minutes, seconds) in a date field with a rule? Can't figure it out for the life of me...
Thanks in advance!
Comments
Comment #1
Abenezer commentedJust bumping this in case it got buried. Thanks in advance!
Comment #2
gettysburger commentedI need the same thing. I am trying to use cron to trigger a rule once a day. Thanks
Comment #3
rashmit sidhu commentedI hope that you have time with date field. Your date field is stored in particular entity then you need to customize your rules event info with below.
Step 1 : create custom rule event
You require to pass this entity in rule invoke event.
Step 2 : You can access your date field in Execute PHP Code. ie.
$node->datefield.Step 3 : Retrieve Hours, minutes, seconds from above field.
Let me know if you face any query/concern regarding this.
Thanks!
Comment #4
tr commented