{ startTime: '2021-05-31 00:00:00' }
{ endTime: '2021-05-31 23:59:59' }
query.andWhere('cm.time >= :startTime AND cm.time <= :endTime', { startTime: startTime, endTime: endTime });
{ startTime: '2021-05-31T00:00:00.000' }
{ endTime: '2021-05-31T23:59:59.999' }
@Column({
type: 'date',
name: 'time'
})
time: string;
/**
* Force date types (TIMESTAMP, DATETIME, DATE) to be returned as strings rather then inflated into JavaScript Date objects.
* Can be true/false or an array of type names to keep as strings.
*/
readonly dateStrings?: boolean | string[];