import { IDtoConverter } from "../interfaces" ; export class DateDtoConverter implements IDtoConverter < string , Date > { public convertFromDto ( dto ) { return new Date ( dto ) ; } public convertToDto ( model ) { return model . toISOString ( ) ; } }