/
Formatting a Date

Formatting a Date

Examples of outputting a formatted date

Current date formatted as MM/dd/yyyy:  <%= new Date().format('MM/dd/yyyy') %>

Current date formatted as M/d/yyyy: <%= new Date().format('M/d/yyyy') %>

 

Date of a variable formatted as MM/dd/yyyy:  <%= new Date(#EncounterDate).format('MM/dd/yyyy') %>

Date of a variable formatted as M/d/yyyy:  <%= new Date(#EncounterDate).format('M/d/yyyy') %>

 

 

Related content

Using Dates with JavaScript
Using Dates with JavaScript
More like this
Examples of outputting date, text, or checkbox variable values
Examples of outputting date, text, or checkbox variable values
More like this
Scripting in Report Templates
Scripting in Report Templates
More like this
Subject Report Header Examples
Subject Report Header Examples
More like this
Working with dates in the script
Working with dates in the script
More like this
Variables in Rows
Variables in Rows
More like this