Hello All, I have a date as March 8 1985. I want t...
# suitescript
v
Hello All, I have a date as March 8 1985. I want to convert it to 8 March 1985. How can this be achieved? Could anyone please help? Already tried parse, but it was not success
b
the answer relies on knowing the difference between a date and a string
do you have the string: 'March 8 1985'
or do you have a Date that can be represented by March 8 1985
v
Its not a string its a date
b
first choice will be date manipulation library like moment
second choice is using methods like getMonth to build up your string
v
But i get an error as cannot find function getMonth()
b
then we are back at the original question, do you have a string or a date
v
i believe it is a date, but if its a string, how can i make it as date?
b
dont guess, guessing is dumb
😄 1
v
sorry, its not getting changed.