Function concealDatetime

  • Anonymize the text in the time and date format and display only the date. e.g. "2020-10-19 11:22:33" -> "2020-10-19 **:**:**"

    Parameters

    • text: string

    Returns string