getDateMsByTimeStr static method

int? getDateMsByTimeStr(
  1. String dateStr, {
  2. bool? isUtc,
})

get DateMilliseconds By DateStr.

Implementation

static int? getDateMsByTimeStr(String dateStr, {bool? isUtc}) {
  DateTime? dateTime = getDateTime(dateStr, isUtc: isUtc);
  return dateTime?.millisecondsSinceEpoch;
}