Ensuring Valid Date in Schema with TypeScript

how to get valid Date in schema? I have this: modification_datetime: Schema.DateFromString, since I get a string and want to get a date from that. But I don't want invalid Dates, I only want valid Dates. I have tried using ValidDateFromSelf and validDate and everything with valid and date in it, with Schema.filter and .pipe, but I get TS errors all the time. Are there any examples on how to use these valid Date schemas?
Was this page helpful?