Using MS version 14.0.17 on WinXP SP3
This works for me
Code: Select all
Let>Invoice_Date=12/17/2013
Let>dd=17
Let>mm=12
Let>ccyy=2013
Let>yr={copy(%Invoice_Date%,7,4)}
Let>mon={copy(%Invoice_Date%,1,2)}
Let>Dy={copy(%Invoice_Date%,4,2)}
If>{((copy(%Invoice_Date%,7,4))=%ccyy%)and((copy(%Invoice_Date%,4,2))=%dd%)and((copy(%Invoice_Date%,1,2))=%mm%)}
MDL>Invoice is for today
EndIf
Code: Select all
Let>Invoice_Date=12/06/2013
Let>dd=06
Let>mm=12
Let>ccyy=2013
Let>yr={copy(%Invoice_Date%,7,4)}
Let>mon={copy(%Invoice_Date%,1,2)}
Let>Dy={copy(%Invoice_Date%,4,2)}
If>{((copy(%Invoice_Date%,7,4))=%ccyy%)and((copy(%Invoice_Date%,4,2))=%dd%)and((copy(%Invoice_Date%,1,2))=%mm%)}
MDL>Invoice is for today
EndIf
Guess I''l go back to using MidStr>