fromDateTime static method

Date fromDateTime(
  1. DateTime dateTime
)

Create a JS Date object from a Dart DateTime object

Implementation

static Date fromDateTime(DateTime dateTime) =>
    Date(dateTime.millisecondsSinceEpoch.toJS);