formatNowAsDate

open fun formatNowAsDate(): Date

This method is used to format the current timestamp as a date No-any params required

Return

the current timestamp value as Date


open fun formatNowAsDate(pattern: String): Date

This method is used to format the current timestamp as a date

Return

the current timestamp value as Date

Parameters

pattern

: pattern to format the return date e.g. dd/MM/yyyy hh:mm:ss