@fmtdate() Function

Top  Previous  Next

@fmtdate() function is used to format date/time data. (A numeric value where the unit is millisecond)

Syntax:

@fmtdate(date/timeformat-pattern)
 

date/time

Date/time data. A numeric value (the total number of milliseconds) must be given for this parameter. The now() function can be used for this parameter.

format-pattern

A pattern to format Date/Time. See Date/Time format symbols

 

Examples:

@fmtdate(now(),'yyyy-MM-dd kk:mm')

@echo('Time : ' + fmtdate(now(),'kk:mm') )

 

See @incrdate(), @parsedate()