Version: 4.3

Class: DateType

Hierarchy

  • Type<Date, string>

    DateType

Methods

compareAsType

compareAsType(): string

Overrides Type.compareAsType

Defined in packages/core/src/types/DateType.ts:34

Returns: string


convertToDatabaseValue

convertToDatabaseValue(value: Date | string | undefined | null, platform: Platform): string

Overrides Type.convertToDatabaseValue

Defined in packages/core/src/types/DateType.ts:8

Parameters:

NameType
valueDate | string | undefined | null
platformPlatform

Returns: string


convertToJSValue

convertToJSValue(value: Date | string | null | undefined, platform: Platform): Date

Overrides Type.convertToJSValue

Defined in packages/core/src/types/DateType.ts:20

Parameters:

NameType
valueDate | string | null | undefined
platformPlatform

Returns: Date


getColumnType

getColumnType(prop: EntityProperty, platform: Platform): string

Overrides Type.getColumnType

Defined in packages/core/src/types/DateType.ts:38

Parameters:

NameType
propEntityProperty
platformPlatform

Returns: string


toJSON

toJSON(value: Date, platform: Platform): Date | string

Overrides Type.toJSON

Defined in packages/core/src/types/DateType.ts:42

Parameters:

NameType
valueDate
platformPlatform

Returns: Date | string


getType

StaticgetType<JSType, DBType>(cls: Constructor<Type<JSType, DBType>>): Type<JSType, DBType>

Inherited from Type.getType

Defined in packages/core/src/types/Type.ts:46

Type parameters:

Name
JSType
DBType

Parameters:

NameType
clsConstructor<Type<JSType, DBType>>

Returns: Type<JSType, DBType>

Last updated on by Martin Adámek