Convert DTTM to DATE in PeopleCode

If you want to convert DTTM to DATE in PeopleCode use Substring:

Substring(&recMsg.NEW_SCAN_DTTM.Value, 1, 10)

It will take 2013-11-05-13.23.19.000000 and make it 2013-11-05