Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Calculate Date Post Reply Post New Topic
Author Message
tobitimac
Newbie
Newbie


Joined: 10 Feb 2011
Location: United States
Online Status: Offline
Posts: 3
Quote tobitimac Replybullet Topic: Calculate Date
     Posted: 06 Jun 2012 at 5:35pm
Hi can someone help me with this

if Arrival Date is between 1st - 16th then payment date = 16th of the next month

if Arrival Date is between 18th - 31th then payment date = 16th of the next 2 months

Edited by tobitimac - 06 Jun 2012 at 5:49pm
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 07 Jun 2012 at 3:39am
a few ways to do it...
here is one
dateserial(year(currentdate),month(currentdate)+ if day(table.arrivaldate)<17 then 1 else 2,16)
IP IP Logged
tobitimac
Newbie
Newbie


Joined: 10 Feb 2011
Location: United States
Online Status: Offline
Posts: 3
Quote tobitimac Replybullet Posted: 07 Jun 2012 at 8:06am
Thanks it works great.
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum