Date to String

Good Afternoon,
I’m trying to convert date to string using the code:

var d = new Date ();

function dateTOstring (){
application.output(d.toDateString());
}

more of the following error “toDateString not null”

And not consigo iniciar the variable

Please help me

Hi Felipe,

I think you should take a look at the utils.dateFormat() function.

Hope this helps.