Quantcast
Viewing all articles
Browse latest Browse all 9063

Re: selecting the current date

You have 2 options,

 

1) Create new formula, lets say CurDateNum and place below formula to convert current Date to Number

tonumber(totext(currentdate,'yyyyMMdd'))

Then in Report Filter put condition

@CurDateNum = {WOC_REASON.OTTRND}

 

Or

 

2) Create a new formula, lets say DateOTTRND and place below formula to convert OTTRND to Date

Date(Mid (CStr ({WOC_REASON.OTTRND}),6 ,1 )&  Mid (CStr ({WOC_REASON.OTTRND}),8 ,1 )&

"/" &

Mid (CStr ({WOC_REASON.OTTRND}),9 ,2 ) &

"/" &

Mid (CStr ({WOC_REASON.OTTRND}),1 ,2 )&  Mid (CStr ({WOC_REASON.OTTRND}),4 ,2 )

)

Then in Report filter place condition

@DateOTTRND = CurrentDate

 

Note:

-> Your formula looks correct except, you didn't converted from string to Date


Viewing all articles
Browse latest Browse all 9063

Trending Articles