bug with DateTime formatter

Stimulsoft Reports.Flex discussion
brianj774
Posts: 177
Joined: Tue Jan 11, 2011 7:15 am
Location: Minnesota

bug with DateTime formatter

Post by brianj774 »

See the image below:

http://twitpic.com/4nphdp

Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

bug with DateTime formatter

Post by Vladimir »

Hello,

Please tell us how you connect the data to the report?

Thank you.
brianj774
Posts: 177
Joined: Tue Jan 11, 2011 7:15 am
Location: Minnesota

bug with DateTime formatter

Post by brianj774 »

Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

bug with DateTime formatter

Post by Vladimir »

Hello,

We understand the problem, will try to to solve it as quickly as possible. We will report on the forum about the solutions to this problem.

Thank you.
brianj774
Posts: 177
Joined: Tue Jan 11, 2011 7:15 am
Location: Minnesota

bug with DateTime formatter

Post by brianj774 »

From the May 04 release, I see :

Code: Select all

Fix: Improved work with DateTime formatting.
Fix: An error when selecting a data column for charts, filters, sorting, if a relation is used.
But I'm afraid that its still not working for me, neither Dates, nor Times.

Additionally, I'm trying some Expressions with my DateTime field, such as...

Code: Select all

{Year(QDeposit.OrderDate)}-{Month(QDeposit.OrderDate)}-{Day(QDeposit.OrderDate)}

Code: Select all

{DateToStr(QDeposit.OrderDate)}
Neither of these ideas are working out for me either. All I get is blank boxes.

By the way, is there a place I can see any errors that were generated? Whats the best way to debug reports?

Thanks!
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

bug with DateTime formatter

Post by Vladimir »

Hello,

For convert a date to a string value, you can use the following expressions:

Code: Select all

{QDeposit.OrderDate.ToString("yyyy-MM-dd")}
2008-03-09

{Format("{0:yyyy-MM-dd}", QDeposit.OrderDate)}
2008-03-09
There are following custom format specifiers:
y (year)
M (month)
d (day)
h (hour 12)
H (hour 24)
m (minute)
s (second)
f (second fraction)
F (second fraction, trailing zeroes are trimmed)
t (PM or AM)
z (time zone)


Examples:

Code: Select all

{QDeposit.OrderDate.ToString("y yy yyy yyyy")}
8 08 008 2008

{QDeposit.OrderDate.ToString("M MM MMM MMMM")}
3 03 Mar March

{QDeposit.OrderDate.ToString("d dd ddd dddd")}
9 09 Sun Sunday

{QDeposit.OrderDate.ToString("h hh H HH")}
4 04 16 16

{QDeposit.OrderDate.ToString("m mm")}
5 05

{QDeposit.OrderDate.ToString("s ss")}
7 07

{QDeposit.OrderDate.ToString("f ff fff ffff")}
1 12 123 1230

{QDeposit.OrderDate.ToString("F FF FFF FFFF")}
1 12 123 123

{QDeposit.OrderDate.ToString("t tt")}
P PM

{QDeposit.OrderDate.ToString("z zz zzz")}
+2 +02 +02:00

Thank you.
brianj774
Posts: 177
Joined: Tue Jan 11, 2011 7:15 am
Location: Minnesota

bug with DateTime formatter

Post by brianj774 »

Sadly, that still isn't working for me...


Field Properties
Image

Header Definition
Image

Actual Rendering
Image

Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

bug with DateTime formatter

Post by Andrew »

Hello,

Your screenshots are not visible. Could you, please upload screenshots.

Thank you.
brianj774
Posts: 177
Joined: Tue Jan 11, 2011 7:15 am
Location: Minnesota

bug with DateTime formatter

Post by brianj774 »

Andrew wrote:Hello,

Your screenshots are not visible. Could you, please upload screenshots.

Thank you.
Odd, I see them. And...on refresh, they are gone...Ok...no twitpic uploads for me... back to my old way.


// should be better now //
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

bug with DateTime formatter

Post by Andrew »

Now I see them.

Thank you.
Locked