Date class

Constructors

Date(int year, [int month = 1, int day = 1])
Date.now()
factory

Properties

day int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
month int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
year int
getter/setter pair

Methods

add(Duration duration) Date
compareTo(Date other) int
difference(Date other) Duration
isAfter(Date other) bool
isAtSameMomentAs(Date other) bool
isBefore(Date other) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
subtract(Duration duration) Date
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

parse(String formattedString) Date
tryparse(String formattedString) Date?