formatDate

fun formatDate(inputDate: String, inputDateFormat: String, expectedFormat: String = SDF_E_MMM_DD_YYYY): String?

This function is responsible for formatting a date for whatever expectedFormat we need. It takes an inputDate string along with the inputDateFormat so it can convert it to the Date and then it gives output in expected Format, expectedFormat is by default (Example: Mon, Nov 5 2021)


fun formatDate(date: Date, expectedFormat: String = SDF_E_MMM_DD_YYYY): String

This function is responsible for formatting a date for whatever expectedFormat we need. It takes an input a date as input and then it gives output in expected Format, expectedFormat is by default (Example: Mon, Nov 5 2021)