formatAsNowString

open fun formatAsNowString(pattern: String): String

This method is used to format the current timestamp as string

Return

the current timestamp value formatted as String

Parameters

pattern

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