(date?: string)
| 57 | } |
| 58 | |
| 59 | private stringDateToUTC(date?: string): string { |
| 60 | const format = 'YYYY-MM-DD'; |
| 61 | return moment(date, format, true).utc().toISOString(); |
| 62 | } |
| 63 | |
| 64 | private validateFromIsLessThanTwo(from: string, to: string): boolean { |
| 65 | // Parse the ISO string dates into Moment objects |