how to change this '1.68834E+12 ' into date?
# suitescript
v
how to change this '1.68834E+12 ' into date?
b
convert it to a number first
s
If you are getting that as text then you can’t. Usually happens when data is loaded into Excel then saved as CSV. Go back to Excel and change column format to date.
v
even if i change , the customer dont remember to do it everytime i believe.the data is from customer now. anyother way?
b
after that, its number to date
s
That won't work if you only have 6 significant digits.
b
try it and then revaluate that statement
s
Really? That's enough to get the date? Never thought of that!
v
i could get the number as 1688342400000 but i dont get the date from this.
e
Show your code
a
v
I could do it. Thank youall