whatsapp static method
Implementation
static whatsapp({required DateTime date}) {
String hour = date.hour.toString();
String minute = date.minute.toString();
while (hour.length < 2) {
hour = '0$hour';
}
while (minute.length < 2) {
minute = '0$minute';
}
return '$hour:$minute';
}