If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Covnert string date (yyymmdd) into a date (dd-mm-yyyy) as part of import

Started by dagland, 12 Apr 2015 11:12:57 PM

Previous topic - Next topic

dagland

Hi All,

I am trying to import a data source into TM1 using performance Modeler, that has a date Number field (yyyymmdd) that I want to convert to a proper date for use as a date dimension. I have tried to use the following substring formulas but neither have worked:

vDate = Subst(The_Date_Number,7,2)|'/'|Subst(The_Date_Number,5,2)|'/'|Subst(The_Date_Number,1,4);
vDate = Subst(The_Date_Number,7,2)|'-'|Subst(The_Date_Number,5,2)|'-'|Subst(The_Date_Number,1,4);

I don't want to have to change the data source manually, prior to loading, so any suggestions would be appreciated.

Thanks
Danielle

japwah

try converting the date number to a string first, then use it in your formula.

strDateNumber = numbertostring(The_Date_Number);