Skip to main content
Level 2
Nov 30, 2016 6:07 AM UTC
Solved

Is javascript code activity supports the sql function?

I am trying to use function to convert the date format into the string for ex (12/06/2016 to 12-Jun-2016)

Without creating and importing package into the adobe campaign, Is there any alternative option to do that activity.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
vraghav
vraghavAccepted solution
Adobe Employee
Nov 30, 2016 8:21 AM UTC

Hi Sakthikumar,

JavaScript code activity will allow running JS based functions. You can convert the string to a Date object and then perform transformations on it.

Regards,

Vipul

2 replies

vraghav
Adobe Employee
vraghavAdobe EmployeeAccepted solution
Adobe Employee
Nov 30, 2016 8:21 AM UTC

Hi Sakthikumar,

JavaScript code activity will allow running JS based functions. You can convert the string to a Date object and then perform transformations on it.

Regards,

Vipul

Translate
Amit_Kumar
Level 10
Dec 23, 2016 4:27 AM UTC

did you tried formatDate(date,"%2D-%3B-%4Y"), if this doesn't work post the error logs here. may be your user doesn't have required rights i.e admin rights.

Translate