mibuso.com

Microsoft Business Solutions online community
It is currently Thu May 23, 2013 2:17 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: how to filter date in between
PostPosted: Wed Aug 08, 2012 9:54 am 
Offline

Joined: Wed Sep 29, 2010 3:18 am
Posts: 764
Country: Australia (au)
hi all
i want to filter date in between
i have data like this
entry no 1 = starting date 01/08/2012,ending date 31/08/2012
entry no 2 = starting date 01/09/2012,ending date 30/09/2012
entry no 3 = starting date 01/10/2012,ending date 31/10/2012

so if i put date as 15/09/2012, then it will go to entry no 2
and if i put date as 02/08/2012, then it will go to entry no 1

and clue?


Top
 Profile E-mail  
 
 Post subject: Re: how to filter date in between
PostPosted: Wed Aug 08, 2012 10:07 am 
Offline
MVP Microsoft Dynamics NAV

Joined: Tue Sep 02, 2008 8:37 am
Posts: 4226
Location: New Delhi
Country: India (in)
Put filter using

Quote:
CALCDATE('<-CM>',<your input>)
CALCDATE('<CM>',<your input>);

_________________
-Mohana
http://mibuso.com/blogs/mohana
http://mohana-dynamicsnav.blogspot.in/


Top
 Profile  
 
 Post subject: Re: how to filter date in between
PostPosted: Wed Aug 08, 2012 10:24 am 
Offline

Joined: Wed Sep 29, 2010 3:18 am
Posts: 764
Country: Australia (au)
mohana_cse06 wrote:
Put filter using

Quote:
CALCDATE('<-CM>',<your input>)
CALCDATE('<CM>',<your input>);


hi mohana,
that's good idea
but how about the data is not monthly

let say start date 01/10/2012,ending date 06/10/2012


Top
 Profile E-mail  
 
 Post subject: Re: how to filter date in between
PostPosted: Wed Aug 08, 2012 12:12 pm 
Offline

Joined: Sat Sep 25, 2004 2:04 am
Posts: 354
Location: Netherlands
Country: Netherlands (nl)
Wouldn't this work ?

Code: Select all
record.SetFilter("Starting date",'..%1',SearchDate) ;
record.Setfilter("Ending Date",'%1..',Searchdate)  ;


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: draj83, Google [Bot] and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: