Android Utililty Methods Date to String Convert

List of utility methods to do Date to String Convert

Description

The list of methods to do Date to String Convert are organized into topic(s).

Method

StringconvertToDateStamp(Date date)
Convert given date to string
OutputFormat: yyyymmdd_hhmm
StringdateTimeToString(Date date)
date Time To String
StringdateToIsoDateString(@NotNull Date date)
Converts a Date object to an ISO-formatted String representation of it.
StringdateToIsoDateString(@Nullable Date date, @NotNull DateFallback fallback)
Converts a java.util.Date object to an ISO-formatted String representation of it.
StringformatDate(Date date, String format)
Formats date to the string with specific time date format.
StringformatDate(String format, Date date)
format Date
StringformatDate(final Date date)
format Date
StringgetCurrentDateStr()
get Current Date Str
StringgetCurrentDateStrs()
get Current Date Strs
StringgetCurrentTimeStr()
get Current Time Str