DateTime defines a single DateTime type instance.
Example:
const dt0 = new DateTime() // nowconst dt1 = new DateTime('2023-07-01 00:00:00.000Z') Copy
const dt0 = new DateTime() // nowconst dt1 = new DateTime('2023-07-01 00:00:00.000Z')
Optional
IsZero checks whether the current DateTime instance has zero time value.
MarshalJSON implements the [json.Marshaler] interface.
Scan implements [sql.Scanner] interface to scan the provided value into the current DateTime instance.
String serializes the current DateTime instance into a formatted UTC date string.
The zero value is serialized to an empty string.
Time returns the internal [time.Time] instance.
UnmarshalJSON implements the [json.Unmarshaler] interface.
Value implements the [driver.Valuer] interface.
Generated using TypeDoc
DateTime defines a single DateTime type instance.
Example: