and then if you want to go from date to string use...
# suitescript
c
and then if you want to go from date to string use format.format and from string to date use format.parse