Hi, new Date() is giving server side date (not bro...
# suitescript
c
Hi, new Date() is giving server side date (not browser date and user preference date) from UE script which is having issue to address some unified logic which is different when calling from client script (here we will get browser local time). Anyone faced similar issue/ how to handle this? As we are not aware what Is the server time zone ( I believe server time is based on the server hosted location).
To give specific issue, newDate is giving one day before date till some specific time and after that it is giving same date as local date. Based on returned date we have some logic to derive.
b
im not sure what your logic is
but if you are using logic for date fields
use N/format for converting strings to date and dates to strings
If you are already getting a Date from a field, keep in mind that different strings can still represent the same moment in time