Skip to main content

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