Hi Balaji,
All you need to create is three variables Date of type Dimension and LEN, POS of type measures
Where is that you are getting the error ??
1. Date = UserResponse("Approved Date")
2. POS = pos([Date];";") this should be of type measure
3. LEN = length([Date]) this should also be of type measure
and then use the formula as suggested above
= "From Date: " + Substr([Date];1;10 - (22-[POS]) ) + " and To Date : " + Substr(Right([Date];21- (43-[LEN]) + (22-[POS]) );1;10 - (43-[LEN])+(22-[POS]) )
Let me know how this works
Mark,
Here we are using 22 and 43 as offsets not just hard coding , i have tried all possible cases and it is working perfectly.
Thanks,
Tanveer.