Try this:
'{Constant.Yesterday}'.split('.')[0]
That should split off everything after the millisecond decimal point, and then returns part [0] which is the first portion (just the date time… without the milliseonds).
Try this:
'{Constant.Yesterday}'.split('.')[0]
That should split off everything after the millisecond decimal point, and then returns part [0] which is the first portion (just the date time… without the milliseonds).