DateTimeExtension extension

on

Properties

timeString String

Available on DateTime, provided by the DateTimeExtension extension

no setter

Methods

isSameDate(DateTime? other) bool

Available on DateTime, provided by the DateTimeExtension extension

isSameMonth(DateTime other) bool

Available on DateTime, provided by the DateTimeExtension extension

isSameWeek(DateTime other) bool

Available on DateTime, provided by the DateTimeExtension extension

weekNumber() int

Available on DateTime, provided by the DateTimeExtension extension

Calculates week number from a date as per https://en.wikipedia.org/wiki/ISO_week_date#Calculation

Static Methods

numOfWeeks(int year) int

Available on DateTime, provided by the DateTimeExtension extension