- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2023 07:32 PM
Hello,
I'm currently encountering an issue where the date displays on the ritm description like this:
The date value comes from date variable in the flow designer:
I need help on switch it from 2024-06-30 to 06-30-2024 format.
Thank you
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2023 10:50 PM
Hi @Erica2
Try the script below.
var dt = fd_data._1__get_catalog_variables.recording_ends_date;
var gd = new GlideDate();
gd.setValue(dt);
return "Recording on:" + gd.getByFormat('MM-dd-YYYY');
Please mark my answer helpful and accept as solution if it helped 👍✅
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2023 07:39 PM - edited 11-01-2023 07:40 PM
Hi @Erica2
You can create another flow variable and store the converted date using inline scripting.
var gd = new GlideDate(REFERENNCE TO YOUR DATE VARIABLE);
return gd.getByFormat('MM-dd-YYYY');
Then you can use the variable which have formatted date in description field.
If you don't want to use another variable you can directly use inline scripting in Description field value setting with same logic and construct entire description in script and return that value.
Please mark my answer helpful and accept as solution if it helped you 👍✅
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2023 08:08 PM
Hello @AnveshKumar M
I must have entered it incorrect, because it is not working: Please help. Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2023 10:50 PM
Hi @Erica2
Try the script below.
var dt = fd_data._1__get_catalog_variables.recording_ends_date;
var gd = new GlideDate();
gd.setValue(dt);
return "Recording on:" + gd.getByFormat('MM-dd-YYYY');
Please mark my answer helpful and accept as solution if it helped 👍✅
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2023 09:59 PM
HI @Erica2 ,
I trust you are doing great.
Please refer to below video for the same.
Was this answer helpful?
Please consider marking it correct or helpful.
Your feedback helps us improve!
Thank you!
Regards,
Amit Gujrathi