formatDateTime method
formatDateTime extension method this extension method will convert a date time into provided or default date time format string
Implementation
String formatDateTime({String? newDateTimeFormat}) => _formatDateTime(this, newDateTimeFormat: newDateTimeFormat);