What do you mean by "bongs out"? Do you mean you can't load the program into the PLC?
To log the time into DM[n], you just have to assign it:
DM[N] = TIME[1] ' log hour
DM[N+1] = TIME[2] ' log minute
DM[N+2] = TIME[3] ' log second
DM[N+3] = DATE[2] ' Log Month
DM[N+4] = DATE[3] ' Log Day
N = N+5
If this use up too much memory you could compress the data into one variable such as:
DM[N+3] = DATE[2]*100+DATE[3] ' represent as 101 to 1231