Date format change

Avatar

Avatar
Level 1
kumarg
Level 1

Likes

0 likes

Total Posts

6 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
kumarg
Level 1

Likes

0 likes

Total Posts

6 posts

Correct reply

0 solutions
View profile
kumarg
Level 1

24-08-2020

Hi,

 

Can I change the language of month? For example instead May in english, I'd like write in french (mai) or spanish (mayo). Is it possible too?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 100
MVP
_Manoj_Kumar
MVP

Likes

117 likes

Total Posts

329 posts

Correct reply

102 solutions
Top badges earned
Affirm 100
Validate 1
Contributor
Ignite 1
Shape 1
View profile

Avatar
Affirm 100
MVP
_Manoj_Kumar
MVP

Likes

117 likes

Total Posts

329 posts

Correct reply

102 solutions
Top badges earned
Affirm 100
Validate 1
Contributor
Ignite 1
Shape 1
View profile
_Manoj_Kumar
MVP

25-08-2020

Hello @kumarg ,

 

You can download the moment.js from here.

Then upload this file in the Administration > Configuration > Javascript Codes. Use the Name as cus:moment.js.

Then in your workflow you can use this to get the translated output.

loadLibrary('cus:moment.js');

moment.locale('fr');
var stringMonth=moment().format('MMMM');
logInfo(stringMonth);

The Output will be French August which is août.

 

Thanks

 

 

Answers (0)