dateToTimeStamp static method

int dateToTimeStamp(
  1. String dateTime
)

Implementation

static int dateToTimeStamp(String dateTime) {
  try {
    return getFormattedDateToDateTime(dateTime)!
        .toUtc()
        .millisecondsSinceEpoch;
  } catch (e) {
    return 0;
  }
}