Quantcast
Channel: Adobe Community : Discussion List - ColdFusion
Viewing all articles
Browse latest Browse all 6243

CFIF today is between dates do this?

$
0
0

So here is the logic I have I just can t figure how to code

 

If the date is between 5/31/2014 after 3:00 PM  and 6/7/2014 up to 3:00PM 

<CFSET payweek =1>

If the date is between 6/7/2014 after 3:00 PM  and 6/14/2014 up to 3:00PM

<CFSET payweek =2>

If the date is between 6/14/2014 after 3:00 PM  and 6/21/2014 up to 3:00PM

<CFSET payweek =3>

 

 

I know I could code all of the weeks but isn't there a way to do this with a loop when you have know starting date 5/31/2014 and time and set length 7 days?


Viewing all articles
Browse latest Browse all 6243

Trending Articles



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