Questions on date format

Stimulsoft Reports.PHP discussion
Post Reply
Super Bread
Posts: 36
Joined: Mon Aug 08, 2011 12:51 am

Questions on date format

Post by Super Bread »

Hello,

1. In the report designer, can it set the date in this format (1st August, 2012) ?

2. What is the meaning of date format *f and *F?

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

Questions on date format

Post by Vladimir »

Hello,

1. You can set the "dd MMMM, yyyy" custom format, or use the following expression: {DataSource1.DateColumn.ToString("dd MMMM, yyyy")}

2. Means a full date and time format, but unfortunately does not work correctly. We will fix this bug.

Thank you.
Super Bread
Posts: 36
Joined: Mon Aug 08, 2011 12:51 am

Questions on date format

Post by Super Bread »

Hi,

Thanks for your reply.

1. It only shows (01 August, 2012) after your setting, but I would like to show (1st August, 2012).

2. Please let me know if you have the bug fix.

Thanks.
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Questions on date format

Post by Ivan »

Hello,

We made some improvements in that direction and add a new function ToOrdinal(int).
Now you can use the following expression, for example:

Code: Select all

{ToOrdinal(Today.Day) + " " + Today.ToString("MMMM, yyyy")}
This expression produce the following string:

Code: Select all

20th June, 2012
The patch will be available in the next prerelease build.

Thank you.
Super Bread
Posts: 36
Joined: Mon Aug 08, 2011 12:51 am

Questions on date format

Post by Super Bread »

Hello,

Is this prerelease version (Stimulsoft Reports.Fx for PHP 2012.06.22 Trial) included this new function ToOrdinal(int) ?

I tried but it doesn't work.

Thanks.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Questions on date format

Post by HighAley »

Hello.
Super wrote:Is this prerelease version (Stimulsoft Reports.Fx for PHP 2012.06.22 Trial) included this new function ToOrdinal(int) ?

I tried but it doesn't work.
We've checked our last Trial again. All works right.
Please, try to clear browser cache. If it will not help you, describe problems that you got more detailed.

Thank you.
Super Bread
Posts: 36
Joined: Mon Aug 08, 2011 12:51 am

Questions on date format

Post by Super Bread »

Sorry, I forgot to change back the field format from Custom to General. It's worked now. Thank you so much.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Questions on date format

Post by Alex K. »

Hello,

Ok.
Let us know if you need any additional help.

Thank you.
Post Reply