Can the dates be set to format as 00/00/00? (mm/dd/yy)
Navigate to the Module that contains the Date Format you are using for the Date Output, insert a Line Item "Format Date" and populate the Formula referencing the Line Item with the Date, but format the line item as TEXT. Once you have your date format, the Formula should be as such:TEXT(YEAR(Format Date)) & "-" & (IF LENGTH(TEXT(MONTH(Format Date))) < 2 THEN "0" & TEXT(MONTH(Format Date)) ELSE TEXT(MONTH(Format Date))) & "-" & IF LENGTH(TEXT(DAY(Format Date))) < 2 THEN "0" & TEXT(DAY(Format Date)) ELSE TEXT(DAY(Format Date))
This will give a date output of YYYY-MM-DD but you can switch around the logic to obtain MM-DD-YYYY or replace the "-" with "/" if you want that format.
@tbeck
While you can do that, it is best practice that you don't and instead break that up into multiple line items so it is cleaner, easier to read/maintain, as well as it performs better because the formula is no longer single threaded. So, you would have four line items: one for Year, one for Month, one for Day, and the last one which puts them all together.
Thanks,
Rob
What is even simpler is to use a defined format of YYYYMMDD and specify that in the import
No need for any manipulation!
Just a little change for the end user and you save a bunch of calcs
Remember "simple is better than complex"
David
Hello @rob_marshall ,
I am uploading a csv template into Anaplan. The csv contains date as column entered by user. Is there a way where Anaplan automatically date formats from MM-DD-YYY to MM/DD/YYY?
Because no matter in which format user enters the date, either using "-" or "/", Anaplan should automatically change it to "MM/DD/YYYY" in an import mapping. I have tried giving custom format mapping to "MM/DD/YYYY", but still, I receive error as Invalid Date.
Can you please help me on this?
@VDPriya
Yes, the custom mapping should work. You have to be careful about CSV's in that how the data is displayed might not be how the data is stored. I would look at the data (in the cell) and then use custom mapping to load it.
There was an error rendering this rich post.
Hi all, The Client ID and Client Secret are available, intended for uploading and downloading files. Could anyone advise how to use these credentials DIRECTLY to make API requests? Thank you!
I have A6 as the parent list and two sibling lists: A6.5 and A7. The A7 list includes an attribute that maps to A6.5. In the UX, the user will select A6.5 using a content selector, and the grid (dimensioned by A7) should display only the A7 items associated with that selected A6.5. Since the selector is a page context and…