to
Date
Extension method from String to parse to Date
Return
Date if parsing success and null if there's exception
Parameters
format date from String
the locale of the string, default value = Locale.getDefault()
Extension method from Long to format date to String
Return
String if formatting success and null if there's exception
Parameters
format String to be formatted
the locale of the result string, default value = Locale.getDefault()