Lava Filters - TimeOfDay
Category:Date
Description:Returns a description of the time of day for an input value that represents a date/time. The keyword 'Now' can be used to represent the current time.
Input: "Person": {
"NickName": "Ted"
"ThirdVisit": "2/14/2011 1pm",
"FourthVisit": "3/18/2011 11:30am"
}
Lava: {{ Person.NickName }}'s third visit was in the {{ Person | Attribute:'ThirdVisit' | TimeOfDay }}, and the fourth visit was in the {{ Person | Attribute:'FourthVisit' | TimeOfDay }}.
Output: Ted's first third was in the Afternoon, and the fourth visit was in the Morning.