dateFormat (knowledge graph)
Description
Format of date to display.
Date needs to match known ISO 8601 or RFC 2822 Date time format or be parsed by native javascript new Date(string)
tool.
Third-party moment.js library is used to format date. For more reference see Moment.js formatting.
Default value
Display date as 24 January 2018, 09:49
dateFormat: 'DD MMMM YYYY, HH:mm'
Examples
Display date as 2018-01-24, 09:49am
dateFormat: 'YYYY-MM-DD, h:mma'
Display date as 24th Jan 2018, 9:49:33
dateFormat: 'Do MMM YYYY, H:mm:ss'