QDate

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

+ new QDate(arg?: NativeElement | number, month?: number, day?: number): QDate

Overrides Component.constructor

Parameters:

NameType
arg?NativeElement | number
month?number
day?number

Returns: QDate

Properties

native

• native: NativeElement | null

Inherited from Component.native

Methods

addDays

â–¸ addDays(ndays: number): QDate

Parameters:

NameType
ndaysnumber

Returns: QDate


addMonths

â–¸ addMonths(nmonths: number): QDate

Parameters:

NameType
nmonthsnumber

Returns: QDate


addYears

â–¸ addYears(nyears: number): QDate

Parameters:

NameType
nyearsnumber

Returns: QDate


day

â–¸ day(): number

Returns: number


dayOfWeek

â–¸ dayOfWeek(): number

Returns: number


dayOfYear

â–¸ dayOfYear(): number

Returns: number


daysInMonth

â–¸ daysInMonth(): number

Returns: number


daysInYear

â–¸ daysInYear(): number

Returns: number


daysTo

â–¸ daysTo(d: QDate): number

Parameters:

NameType
dQDate

Returns: number


isNull

â–¸ isNull(): boolean

Returns: boolean


isValid

â–¸ isValid(): boolean

Returns: boolean


month

â–¸ month(): number

Returns: number


setDate

â–¸ setDate(year: number, month: number, day: number): boolean

Parameters:

NameType
yearnumber
monthnumber
daynumber

Returns: boolean


toJulianDay

â–¸ toJulianDay(): number

Returns: number


toString

â–¸ toString(format: string | DateFormat): string

Parameters:

NameType
formatstring | DateFormat

Returns: string


year

â–¸ year(): number

Returns: number


Static currentDate

â–¸ currentDate(): QDate

Returns: QDate


Static fromJulianDay

â–¸ fromJulianDay(jd: number): QDate

Parameters:

NameType
jdnumber

Returns: QDate


Static fromQVariant

â–¸ fromQVariant(variant: QVariant): QDate

Parameters:

NameType
variantQVariant

Returns: QDate


Static fromString

â–¸ fromString(dateString: string, format: string | DateFormat): QDate

Parameters:

NameType
dateStringstring
formatstring | DateFormat

Returns: QDate


Static isLeapYear

â–¸ isLeapYear(year: number): boolean

Parameters:

NameType
yearnumber

Returns: boolean


Static isValid

â–¸ isValid(year: number, month: number, day: number): boolean

Parameters:

NameType
yearnumber
monthnumber
daynumber

Returns: boolean