Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Tips and Tricks
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Tips and Tricks
Topic: Month - 1
Oldest Post First
Newest Post First
Author
Message
James Rader
Newbie
Joined: 14 Jan 2011
Online Status: Offline
Posts: 9
Topic: Month - 1
Posted: 14 Jan 2011 at 12:56pm
I am a newbie, so bear with me.
I am trying to set a date starting the 25th of every month, which is the start of our billing cycle.
Works well by using
Date (Year (CurrentDate),(Month (CurrentDate)-1) ,25 )
except when the month is January. How can I work around this?
Jim
IP Logged
hilfy
Admin Group
Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Posted: 18 Jan 2011 at 8:21am
Try this:
If Month(CurrentDate) = 1 then
Date((Year(Currentdate) - 1), 12, 25)
else
Date(Year(CurrentDate),(Month (CurrentDate)-1) ,25 )
-Dell
Proviti, Data & Analytics Practice
www.protiviti.com/US-en/data-management-advanced-analytics
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
This page was generated in 0.016 seconds.
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
CLICK PLAYS
|
COACH FORUMS
|
TROPICAL FISH
© 2004-2024 Brian Bischof. All Rights Reserved.