prettifyDate

fun prettifyDate(inputDate: Date): String

This function takes inputDate and returns a difference (for examples 7 hours, 2 day, 5 months, 3 years etc)


fun prettifyDate(inputDateString: String): String

This function takes inputDateString like 2022-7-1 and returns a difference (for examples 7 hours ago, 2 days ago, 5 months ago, 3 years ago etc) inputDateString can give given as 2022-02 or 2022