class-validator#IsDate TypeScript Examples

The following examples show how to use class-validator#IsDate. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: User.ts    From tezos-academy with MIT License 5 votes vote down vote up
@IsDate()
  createdAt!: Date
Example #2
Source File: Post.ts    From typescript-clean-architecture with MIT License 5 votes vote down vote up
@IsOptional()
  @IsDate()
  private removedAt: Nullable<Date>;
Example #3
Source File: User.ts    From tezos-academy with MIT License 5 votes vote down vote up
@IsDate()
  updatedAt!: Date
Example #4
Source File: User.ts    From typescript-clean-architecture with MIT License 5 votes vote down vote up
@IsDate()
  private readonly createdAt: Date;
Example #5
Source File: PublicUser.ts    From tezos-academy with MIT License 5 votes vote down vote up
@IsDate()
  createdAt!: Date
Example #6
Source File: relate-backup.model.ts    From relate with GNU General Public License v3.0 5 votes vote down vote up
@IsDate()
    public created!: Date;
Example #7
Source File: user-metrics-query.dto.ts    From ironfish-api with Mozilla Public License 2.0 5 votes vote down vote up
@ApiPropertyOptional({
    description: `ISO 8601 end date (exclusive) for user metrics request. Required for ${MetricsGranularity.TOTAL} requests`,
  })
  @ValidateIf((o: UserMetricsQueryDto) => Boolean(o.start))
  @IsDate()
  @Type(() => Date)
  readonly end?: Date;
Example #8
Source File: ApiKey.ts    From bulwark with MIT License 5 votes vote down vote up
@Column()
  @IsDate()
  createdDate: Date;
Example #9
Source File: e2e.test.ts    From next-api-decorators with MIT License 5 votes vote down vote up
@IsDate()
  @IsOptional()
  public createdAt?: Date;
Example #10
Source File: Team.ts    From bulwark with MIT License 5 votes vote down vote up
@Column()
  @IsDate()
  lastUpdatedDate: Date;
Example #11
Source File: user-metrics-query.dto.ts    From ironfish-api with Mozilla Public License 2.0 5 votes vote down vote up
@ApiPropertyOptional({
    description: `ISO 8601 start date for user metrics request. Required for ${MetricsGranularity.TOTAL} requests`,
  })
  @ValidateIf((o: UserMetricsQueryDto) => Boolean(o.end))
  @IsDate()
  @Type(() => Date)
  readonly start?: Date;
Example #12
Source File: ApiKey.ts    From bulwark with MIT License 5 votes vote down vote up
@Column()
  @IsDate()
  lastUpdatedBy: number;
Example #13
Source File: index.ts    From office-hours with GNU General Public License v3.0 5 votes vote down vote up
@IsDate()
  sent!: Date;
Example #14
Source File: contact-info.dto.ts    From nestjs-starter with MIT License 5 votes vote down vote up
@ApiProperty()
  @IsDate()
  @Type(() => Date)
  @IsOptional()
  birthday?: Date;
Example #15
Source File: User.ts    From typescript-clean-architecture with MIT License 5 votes vote down vote up
@IsOptional()
  @IsDate()
  private removedAt: Nullable<Date>;
Example #16
Source File: create-survey.dto.ts    From aqualink-app with MIT License 5 votes vote down vote up
@Type(() => Date)
  @IsDate()
  readonly diveDate: Date;
Example #17
Source File: import.ts    From Deep-Lynx with MIT License 5 votes vote down vote up
@IsOptional()
    @IsDate()
    @Type(() => Date)
    created_at?: Date;
Example #18
Source File: record.ts    From ts-di-starter with MIT License 5 votes vote down vote up
@IsDate()
  updatedAt: Date;
Example #19
Source File: author.validator.ts    From mikro-orm-graphql-example with MIT License 5 votes vote down vote up
@Field({ nullable: true })
  @IsDate()
  @IsOptional()
  public born?: Date;
Example #20
Source File: user.dto.ts    From codeclannigeria-backend with MIT License 5 votes vote down vote up
@Expose()
  @IsDate()
  @ApiProperty({ type: Date })
  @Type(() => Date)
  dob: Date;
Example #21
Source File: edit-survey.dto.ts    From aqualink-app with MIT License 5 votes vote down vote up
@IsOptional()
  @Type(() => Date)
  @IsDate()
  readonly diveDate?: Date;
Example #22
Source File: import.ts    From Deep-Lynx with MIT License 5 votes vote down vote up
@IsOptional()
    @IsDate()
    @Type(() => Date)
    inserted_at?: Date;
Example #23
Source File: exclude-spotter-dates.dto.ts    From aqualink-app with MIT License 5 votes vote down vote up
@Type(() => Date)
  @IsDate()
  @IsNotEmpty()
  endDate: Date;
Example #24
Source File: whisp.input.ts    From whispr with MIT License 5 votes vote down vote up
@Field(() => Date, { nullable: true })
  @IsDate()
  @IsOptional()
  expirationDate?: Date;
Example #25
Source File: ontology_version.ts    From Deep-Lynx with MIT License 5 votes vote down vote up
@IsOptional()
    @IsDate()
    @Type(() => Date)
    created_at?: Date;
Example #26
Source File: write-telemetry-points.dto.ts    From ironfish-api with Mozilla Public License 2.0 5 votes vote down vote up
@IsDate()
  @Type(() => Date)
  readonly timestamp!: Date;
Example #27
Source File: ontology_version.ts    From Deep-Lynx with MIT License 5 votes vote down vote up
@IsOptional()
    @IsDate()
    @Type(() => Date)
    approved_at?: Date;
Example #28
Source File: whisp.input.ts    From whispr with MIT License 5 votes vote down vote up
@Field(() => Date, { nullable: true })
  @IsDate()
  @IsOptional()
  @Transform((val: string) => new Date(val))
  timestamp?: Date;
Example #29
Source File: metatype_relationship_pair.ts    From Deep-Lynx with MIT License 5 votes vote down vote up
@IsOptional()
    @IsDate()
    @Type(() => Date)
    deleted_at?: Date;