vncore / com.venuenext.vncore.util / Utils

Utils

object Utils

Functions

formatDateString

Formats date string to matching pattern.

fun formatDateString(inboundDate: String, inboundDatePattern: String, outBoundDatePattern: String): String

formatUTCDateString

Formats UTC date string to matching patterns in local time zone.

fun formatUTCDateString(inboundDate: String?, inboundDatePattern: String, outBoundDatePattern: String): String

getDateFromString

fun getDateFromString(inboundDate: String?, inboundDatePattern: String): Date?

getDateStringFromDate

fun getDateStringFromDate(inboundDate: Date?, outBoundDatePattern: String): String?

getLocalDateFromUTCString

fun getLocalDateFromUTCString(inboundDate: String?, inboundDatePattern: String): Date?

isDateToday

fun isDateToday(date: Date?): Boolean

isEmailValid

fun isEmailValid(email: String): Boolean

removeNonAsciiChars

Removes non-ascii chars from string.

fun removeNonAsciiChars(stringToEscape: String?): String?