Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9242

Re: selecting the current date

$
0
0

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 9242

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>