Hi all,

I would like to convert the following date and time format into Stata format, so that I can performance subtraction between two date and time to find the interval.

1/19/2015 11:33:00 AM

After conversion, I can do:

XXXXXXX - YYYYYY = ZZZZZZ

I have been looking at a few documents on the use of the clock function, but couldn't hack it. Appreciate any helping on the code.

Thanks,
Fred