Skip to content

Date & Time Format

Bleddyn Richards edited this page Dec 5, 2019 · 1 revision

Please be aware the date & time format for v1 and v2 of the extension are different, see the examples below:

Version 1

Date & time transformations are only supported on the Copyright field and conform to the following format:

$(date:yyyy)  
$(date:dd MM yyyy)  
$(date:M.d.yyyy)  
$(date:dd MMMM yyyy HH:mm tt)

For additional date & time formats please see the following Microsoft Doc.

Version 2

The extension was re-written using Node.js and is therefore using a different library to format the date and time. In this version we are using the moment js library and the following format should be adhered to: https://momentjs.com/docs/#year-month-and-day-tokens

An example for v2+ of the extension:

$(date:YYYY) $(date:DD.MM.YYYY DD MMMM YYYY HH:mm a)
Clone this wiki locally