WebListBoxDateTimeRenderer.RelativeValueStyles
From Xojo Documentation
Enumeration
The options for showing the date or time in relative terms.
Values
Enum | Description |
---|---|
None | Both the date and time will be displayed in absolute terms. |
RelativeDate | The DateTime will be displayed in date-relative terms. For example, if the DateTime was yesterday at 5:40PM, the value would be displayed as "Yesterday at 5:40PM" |
RelativeTime | The DateTime will be displayed in time-relative terms. For example, if the DateTime was 3 months ago at 5:40PM, the value would be displayed as "3 months ago". RelativeTime has no limit. |
Notes
If you choose RelativeDate, the date will only appear in relative terms if it's within a week of the current date. If you choose RelativeTime, the time will be relative regardless of the delta between the DateTime and the current time.
Compatibility
Web projects on Linux, macOS and Windows operating systems.
See Also
DateTime class.