Embedded Data field not populating as expected - Language = AR | XM Community
Skip to main content

I currently have the following Embedded Data field in my survey flow to provide a date stamp; ${date://CurrentDate/DS} . This works consistently for all languages other than Arabic.  I’m looking for suggestions on how to change this code to have Arabic be consistent with other languages.  The format in my data is populated like the following yyyy-m-d

Hi @KBrady ,

To ensure consistency with Arabic language formatting, you can use the following code to generate a date stamp in the format "yyyy-m-d" within Qualtrics:

```
${date://CurrentDate/FullYear}-${date://CurrentDate/Month}-${date://CurrentDate/DayOfMonth}
```

It retrieves the year, month, and day components separately and concatenates them using hyphens ("-") to achieve the specified format.

You can replace the existing Embedded Data field in your survey flow with this code to ensure consistent formatting across all languages, including Arabic.


Hi Umang, Thank you, I just tried this and I am only getting “--” as the value when surveys are summitted. I really appreciate your help, what could I be missing?


Hi Umang, Thank you, I just tried this and I am only getting “--” as the value when surveys are summitted. I really appreciate your help, what could I be missing?

The piped field should be:

${date://CurrentDate/Y}-${date://CurrentDate/m}-${date://CurrentDate/d}

 


Thank you! This is almost perfect!… what if I only want one number for a month or day, i.e. “3” and not “03” for March, same for a day, i.e. ”5” and not “05” for the 5th other the month.  double digit days/months are ok,


Thank you! This is almost perfect!… what if I only want one number for a month or day, i.e. “3” and not “03” for March, same for a day, i.e. ”5” and not “05” for the 5th other the month.  double digit days/months are ok,

I don’t think Qualtrics has a format for piping individual single digit months or days. If you really need that, you’ll probably have to resort to creating a date string with JavaScript.


OK Thank you so much!


Leave a Reply