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: Displaying dates
Author
Message
HelenH
Newbie
Joined: 21 Apr 2010
Location: United Kingdom
Online Status: Offline
Posts: 9
Topic: Displaying dates
Posted: 21 Apr 2010 at 2:53am
I am using the LastFullMonth parameter to select data fro my report.
I want to be able to display the last date of the month in question in the report header, but don't know how to.
Can any one help me.
IP Logged
lockwelle
Moderator
Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Posted: 21 Apr 2010 at 3:28am
the usual trick is to find the first day of the next month, and then subtract 1.
local datevar firstDay := date(YEAR({table.field}), Month({table.field})+1, 1);
firstDay := DATEADD("d", -1, firstDay)
//then format as you want.
HTH
IP Logged
HelenH
Newbie
Joined: 21 Apr 2010
Location: United Kingdom
Online Status: Offline
Posts: 9
Posted: 21 Apr 2010 at 4:12am
Thanks for that.
I did it slightly differently, but have got the result I wanted.
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
|
BAEZL
© 2004-2026 Brian Bischof. All Rights Reserved.