m.tDt = DATETIME() m.dDO = m.dSomeDate && or whatever date/date variable you need m.nSecs = m.tDt-DTOT(TTOD(m.tDt)) && Get the seconds from the original DateTime value m.tNew = DTOT(m.dDO) + m.nSecs && Add the seconds to the Date value that's converted to a DateTime value ?m.tNew