date - Format date

<date>

Format date

Introduce

Format the date string in the tag

Attribute

var(optional)
Set the variable to format the date
setScope(optional)
Set the scope of the variable
Property
context:Set variable to context(default)
session:Set variable to session
pattern(optional)
Format pattern
type(optional)
Date type

Property
date:date type(default)
time:time type
both:date and time type
locale(optional)
Set the language of date, 
default is the local language(e.g. English is en, Chinese is zh)
locale(optional)
Set the timeZone of date, 
default is the local timeZone
(e.g. Los Angeles,America is America/Los_Angeles, Shanghai,China is Asia/Shanghai)
dateStyletype(optional)
Date style

Property
default:default style is medium. 2004-5-31
medium:2004-5-31
short:04-5-31
long:May 31, 2004
full:Monday, May 31, 2004
timeStyle(optional)
Time style

Property
default:default style is medium. 11:59:59 PM
medium:11:59:59 PM
short:11:59 PM
long:11:59:59 PM CST
full:11:59:59 PM CST

Example:

Demo