Additional functions are available for strings in cases when the date and/or time needs to be embedded in plaintext.
Given a JS date and an optional format returns a string matching the format. Defaults to FULL
Given a JS date returns only the date portion as a string
Given a JS date returns only the time portion as a string
Given a JS date returns the date portion prefixed with the 3 letter weekday
Given a JS date and an optional baseDate calculates the relative time difference
NOTEformatRelativeDateTime returns a static string, meaning you will need to trigger a re-render if the relative time is to stay accurate for near-term times. <RelativeDate /> does this for you automatically.