add attributes stopdatetime and startdatetime in milli seconds