Extension function of String to parse String as a Date
Return
parsed Date from the given String
Receiver
String
Parameters
pattern of the String to parse
type to locale to parse the String
Extension function of Long to parse unix timestamp as String in the form of Date
Return
parsed String from the given Date
Receiver
Long
Parameters
pattern of the String to format
type of locale to format the Date