the snippet was just for info that when you are on...
# suitescript
c
the snippet was just for info that when you are on server-side you should use that instead of new Date