Found a weird work around for this issue... format...
# suitescript
i
Found a weird work around for this issue... format.parse(...format.format(.... it looks like at same phase of the script, the date object is changing to some NativeDate object for some reason