Product_Date__c false IF( BEGINS( Bar_Code__c , '241'), IF(MID(Bar_Code__c ,4,7)= OT_Code__c && MID(Bar_Code__c ,11,2)= '11' , DATEVALUE('20'&MID( Bar_Code__c , 13, 2)&"-"&MID( Bar_Code__c , 15, 2)&"-"&if(MID(Bar_Code__c , 17, 2)= '00','01',MID(Bar_Code__c , 17, 2))), IF(MID(Bar_Code__c ,4,6)= OT_Code__c && MID(Bar_Code__c ,10,2)= '11' , DATEVALUE('20'&MID( Bar_Code__c , 12, 2)&"-"&MID( Bar_Code__c , 14, 2)&"-"&if(MID(Bar_Code__c , 16, 2)= '00','01',MID(Bar_Code__c , 16, 2))), IF(MID(Bar_Code__c ,4,8)= OT_Code__c && MID(Bar_Code__c ,12,2)= '11' , DATEVALUE('20'&MID( Bar_Code__c , 14, 2)&"-"&MID( Bar_Code__c , 16, 2)&"-"&if(MID(Bar_Code__c , 18, 2)= '00','01',MID(Bar_Code__c , 18, 2))), IF(MID(Bar_Code__c ,4,9)= OT_Code__c && MID(Bar_Code__c ,13,2)= '11', DATEVALUE('20'&MID( Bar_Code__c , 15, 2)&"-"&MID( Bar_Code__c , 17, 2)&"-"&if(MID(Bar_Code__c , 19, 2)= '00','01',MID(Bar_Code__c , 19, 2))), null)))), if(MID(Bar_Code__c ,17,2)= '11',DATEVALUE('20'&MID( Bar_Code__c , 19, 2)&"-"&MID( Bar_Code__c , 21, 2)&"-"&if(MID(Bar_Code__c , 23, 2)= '00','01',MID(Bar_Code__c , 23, 2))),null)) BlankAsZero false false false Date