for example, lets take a simple suitelet that all ...
# suitescript
i
for example, lets take a simple suitelet that all it has to do is to return the datetime in current time zone. return format.format({ value: new Date(), type: format.Type.DATETIME, timezone : format.Timezone.ASIA_JERUSALEM }); Is working great. Now let's say that I want it to return the same value as date object - this part isn't working: var today = format.format({ value: new Date(), type: format.Type.DATETIME, timezone : format.Timezone.ASIA_JERUSALEM }); return format.parse({ value: today, type: format.Type.DATE, timezone : format.Timezone.ASIA_JERUSALEM });