Is javascript code activity supports the sql function?

Avatar

Avatar
Validate 1
Level 2
sakthikumar_gur
Level 2

Likes

4 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
sakthikumar_gur
Level 2

Likes

4 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Boost 3
Boost 1
View profile
sakthikumar_gur
Level 2

29-11-2016

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.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Employee
Vapsy
Employee

Likes

370 likes

Total Posts

726 posts

Correct reply

342 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Validate 1
Employee
Vapsy
Employee

Likes

370 likes

Total Posts

726 posts

Correct reply

342 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 250
View profile
Vapsy
Employee

30-11-2016

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

Answers (1)

Answers (1)

Avatar

Avatar
Springboard
MVP
Amit_Kumar
MVP

Likes

329 likes

Total Posts

649 posts

Correct reply

231 solutions
Top badges earned
Springboard
Ignite 5
Ignite 3
Ignite 1
Validate 10
View profile

Avatar
Springboard
MVP
Amit_Kumar
MVP

Likes

329 likes

Total Posts

649 posts

Correct reply

231 solutions
Top badges earned
Springboard
Ignite 5
Ignite 3
Ignite 1
Validate 10
View profile
Amit_Kumar
MVP

22-12-2016

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.