@now() Function

Top  Previous  Next

@now() function returns the current time in milliseconds. The returned value can be used in @fmtdate() and @incrdate() functions.

Syntax:

@now()
 

 

Examples:

@fmtdate(now(),'yyyy-MM-dd kk:mm') @// fomatting the current time

 

@fmtdate(incrdate(now(),'DAY',-5,'yyyy-MM-dd kk:mm')) 
@// formatting the 5 days before of the current time