In the DB I have a column name time and it's type time,
On my code I'm using nestjs with class-validator and the user send this value for time 10:13:06 ( Assuming it is in 12h format ).
How do I validate this value using class-validator
current code
import {
IsDateString,
IsNotEmpty,
} from 'class-validator';
export class CreateFilmTime {
@IsDateString() // O know it's for date string
time: Date;
}