I think I have a simple one. I want today's date, ...
# suitescript
s
I think I have a simple one. I want today's date, no time. What is the easiest way ?
b
in which timezone, in which date format, in which time format?
s
US, Central Time mm/dd/yyyy
b
Date related questions, especially those that dont think in terms of differences, are usually not simple
is the usual suggestion for formatting date in different timezones
s
what do you need it for? what are you doing with it?
s
Yes, even though it seems simple, if you are not in Pacific timezone, there will be several hours each day where Netsuite’s servers are in a different day than the current day in your intended timezone, so it’s always best to use a library that can deal with such discrepancies.
s
We are in Central Time. All users are in Central Time. Anything simple ?
s
It's not that simple because your server is not in central time. So jobs that run on server time will be on that time
s
With any cloud-based service, you can never assume that the timezone will match yours, or even that the current server timezone will remain the same in the future