Thanks for your help. If I used your above formula for the date string such '1/7/2011' or '1/24/2011' ? The result is displayed:
MO: 1/
DD:7/
Here is a formula that I resolve in case of having one digit or two digits on day as following:
IF (Mid({strdate},3,1) = "/") And (Mid({strdate},5,1) = "/") Then
"DAY: "+Mid({strdate},4,1)
ELSE IF (Mid({?FromDate_RecVal},2,1) = "/") And (Mid({strdate},4,1) = "/") Then
"DAY: "+Mid({strdate},3,1)
ELSE "DAY: "+Mid({strdate},4,2)
Similarly, create another formula for MO.
Edited by atp2K3 - 08 May 2012 at 5:48am