Join our Community in its new Home - The Datorama Trailblazer Community Group!
It's been an amazing 3 years coming together in this forum to collaborate, innovate, support, and inspire each other about our shared usage of Datorama. While this is not quite a goodbye, we are excited to announce that we are getting a fresh start in our new home within the Salesforce Trailblazer Community. We have a ton of fun new content planned and you may even see the revival of some of our most popular posts from the past few years.
We’ll be keeping this group around for a bit for you to peruse, but as of November 15, we will no longer be allowing new posts or comments. Be sure to join our new group at https://www.salesforce.com/success-datorama to keep the conversation going.
We can’t wait to see you there!
It's been an amazing 3 years coming together in this forum to collaborate, innovate, support, and inspire each other about our shared usage of Datorama. While this is not quite a goodbye, we are excited to announce that we are getting a fresh start in our new home within the Salesforce Trailblazer Community. We have a ton of fun new content planned and you may even see the revival of some of our most popular posts from the past few years.
We’ll be keeping this group around for a bit for you to peruse, but as of November 15, we will no longer be allowing new posts or comments. Be sure to join our new group at https://www.salesforce.com/success-datorama to keep the conversation going.
We can’t wait to see you there!
Manipulating the date format of a data stream


I'm having trouble mapping a date for my data stream as the date format in the file is in YYYY-MM-DD (Day) for example 2019-01-18 (Fri), is it possible to take out the day (Fri) so that the date is readable?
Tagged:
Comments
Good day! You can definitely manipulate your data to take certain part of the csv['Date'] value. In your example if your value is 2019-01-18 (Fri), you can extract "2019-01-18" using EXTRACT function, and then getting the system to read the format by PARSEDATE function.
Eg:
var d = TRIM(EXTRACT(csv['Date'],"(",0));
PARSEDATE (d,"YYYY-MM-dd");
Let us know if this helps. Your CSM can also advise you further if you are seeing other date format
I'm having a similar problem. My date variable is yyyy-mm-ddThh:mm:ssz for example: 2019-01-01T02:22:000+0000. Any advise on how to format the date so that I can complete my data mapping?
var d = LEFT(csv['campaign2'],10);
PARSEDATE (d,"YYYY-MM-dd");
It would be best to also raise a ticket and attach your sample file, also indicating which data stream and account you are trying this on.
All the best!
Thank you for the suggestion above but it failed to work. I believe it is due to the fact that my date variable is a date and not a character. I think I have to use the FORMATDATE operator but I'm not 100% sure what format it should be since these attempts below doesn't work:
FORMATDATE(csv['Optin_Date__c'],'yyyy-mm-dd')
FORMATDATE(csv['Optin_Date__c'],'yyyy-mm-ddThh:mm:ssz')
Below is an example of what the date variable looks like:
In terms of the data stream I've created a generic data stream and I'm trying to map this Optin_Date__c to Day which is a date variable which the data model Day.
Any suggestions on how to map this date variable correctly?
Mareets
https://support.datorama.com/en/support/solutions/articles/4000139660-formulas-in-datorama
From there you can extract the portion you need.
If you still need more assistance, it would be best to send in your ticket to [email protected] and also attach your sample file. Please mention the workspace and data stream ID too, so we can look into your current setup.
Thanks.