Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Report Design
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Report Design
Topic: Calculate Date
Author
Message
tobitimac
Newbie
Joined: 10 Feb 2011
Location: United States
Online Status: Offline
Posts: 3
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 Logged
DBlank
Moderator
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
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 Logged
tobitimac
Newbie
Joined: 10 Feb 2011
Location: United States
Online Status: Offline
Posts: 3
Posted: 07 Jun 2012 at 8:06am
Thanks it works great.
IP Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
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
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
PRIVACY
|
CLICK PLAYS
|
KONACAD
© 2004-2026 Brian Bischof. All Rights Reserved.