Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: lastfullmonth Post Reply Post New Topic
Author Message
Macavity
Groupie
Groupie


Joined: 24 Sep 2012
Online Status: Offline
Posts: 93
Quote Macavity Replybullet Topic: lastfullmonth
     Posted: 27 Jan 2014 at 5:15am
Hi,

Anyone an idea why

minimum(lastfullmonth) displays as 01/07/2006

maximum(lastfullmonth) displays as 31/07/2006

?

thanks

IP IP Logged
lolly54
Groupie
Groupie
Avatar

Joined: 25 Sep 2011
Online Status: Offline
Posts: 58
Quote lolly54 Replybullet Posted: 27 Jan 2014 at 5:38am
when you use lastFullMonth, you don't need to split it into two formulas to get the first day of the month or last day of the month.

I think the problem you have is not related to lastFullMonth, it's on your Crystal Report system date and time.

can you please open a test formula as follow:
{@Test Current Time}
CurrentDateTime

What do you get? Is it today's day or some day in 2006 again?
IP IP Logged
Macavity
Groupie
Groupie


Joined: 24 Sep 2012
Online Status: Offline
Posts: 93
Quote Macavity Replybullet Posted: 27 Jan 2014 at 5:45am
The two formula's are for display purposes

I will test currentdatetime tomorrow.

However, other reports on the same server with the same test display 1/12/2013 to 31/12/2013

just can't figure it out

IP IP Logged
Macavity
Groupie
Groupie


Joined: 24 Sep 2012
Online Status: Offline
Posts: 93
Quote Macavity Replybullet Posted: 28 Jan 2014 at 3:10am
Unbelievable, currentdatetime displays as 8/8/2006, the servers date is correct, where does Crystal get that ?

IP IP Logged
Macavity
Groupie
Groupie


Joined: 24 Sep 2012
Online Status: Offline
Posts: 93
Quote Macavity Replybullet Posted: 28 Jan 2014 at 3:17am
I tried to change from system short format to another format, that doesn't help
IP IP Logged
lolly54
Groupie
Groupie
Avatar

Joined: 25 Sep 2011
Online Status: Offline
Posts: 58
Quote lolly54 Replybullet Posted: 28 Jan 2014 at 4:23am
Then this is definitely not related to lastFullMonth or your other formulas.
It is your system time. Changing the system short format or other format won't help.
Maybe open another post and ask... I'd would love to know why only for this report also. Good luck!


IP IP Logged
Macavity
Groupie
Groupie


Joined: 24 Sep 2012
Online Status: Offline
Posts: 93
Quote Macavity Replybullet Posted: 28 Jan 2014 at 5:11am
Found the problem !

on the menu under reports there's a set print date and time, that was set to a specific date (in 2006), changed it to 'today's date and time'.

so currentdatetime uses print date

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