Here are different User Macros that I have made, ripped off, copied and changed/customized.
Some are just ready, and some are raw or pure samples. Find several good ones also at Shared User Macros
Feel free to contact me at bnp@mos-eisley.dk for questions or advice.
$action.dateFormatter.calendar.timeInMillis
See my Macro Guide