Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Is javascript code activity supports the sql function?

sakthikumar_gur
Level 2
Level 2

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.

1 Accepted Solution
Vapsy
Correct answer by
Employee
Employee

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

View solution in original post

2 Replies
Vapsy
Correct answer by
Employee
Employee

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

View solution in original post

Amit_Kumar
Community Advisor
Community Advisor

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.