formatDate function
Formats the date
into a date string timestamp.
Implementation
String formatDate(DateTime date, [TimestampStyle style = TimestampStyle.none]) =>
'<t:${date.millisecondsSinceEpoch ~/ 1000}${style == TimestampStyle.none ? '' : ':${style.style}'}>';