Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Want to Date format Output Post Reply Post New Topic
Author Message
gurupran
Newbie
Newbie
Avatar

Joined: 25 Jun 2009
Location: India
Online Status: Offline
Posts: 6
Quote gurupran Replybullet Topic: Want to Date format Output
     Posted: 08 Jul 2009 at 12:05am
Hi Urjent pls
 
I use CR IX.
 
give the input through parameter like 2009 - 02(year and month only)
 
i want to firstdate and last date of that month
 
firstdate= 01-02-2009
lastdate= 28-02-2009
 
please urjent
guru
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 08 Jul 2009 at 6:20am
split the string into year and month...
start is always 1.
create a datetime variable for the start date (2/1/09), use dateadd to add a month(3/1/09). use dateadd to subtract a day (last day of the month)(2/28/09).
 
HTH
IP IP Logged
gurupran
Newbie
Newbie
Avatar

Joined: 25 Jun 2009
Location: India
Online Status: Offline
Posts: 6
Quote gurupran Replybullet Posted: 08 Jul 2009 at 9:29pm
Hi
 
Thanks for reply. i used to your same solution
 
i get correct result
 
Thank u again
 
 
guru
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