Page 1 of 2
Format DateTime in Expression (MVC Designer)
Posted: Mon Oct 21, 2013 2:02 am
by romulocpd
Hello,
To format a currency value, in format from my country, I can use:
{(Dados.Valor).ToString("###,###,##0.00")}
I'm trying format a DateTime Value (the value is showing with time lik 00:00:00)
{(Dados.DataVencimento).ToString("dd/MM/yyyy")}
If I put it, the system returns INTERNAL ERROR.
Re: Format DateTime in Expression (MVC Designer)
Posted: Mon Oct 21, 2013 12:10 pm
by romulocpd
I found the TextFormat on Designer and choose Date Format (dd/mm/yy).
The value is being printing: 07/05/2014 00:00:00 yet......
Any tips?
Re: Format DateTime in Expression (MVC Designer)
Posted: Mon Oct 21, 2013 1:15 pm
by Alex K.
Hello,
Can you please send us a sample report which reproduce the issue for analsysis.
Thank you.
Re: Format DateTime in Expression (MVC Designer)
Posted: Mon Oct 21, 2013 3:49 pm
by romulocpd
In attach.
In mrt file:
<TextFormat Ref="31" type="DateFormat" isKey="true">
<StringFormat>dd/MM/yyyy</StringFormat>
/TextFormat>
Result:

- Error example
- error dateformat stimulsoft.png (31.49 KiB) Viewed 3890 times
Thank you!
Re: Format DateTime in Expression (MVC Designer)
Posted: Tue Oct 22, 2013 6:34 am
by Alex K.
Hello,
In your datasource the DataVencimento column is string, there may be some problems with the automatic conversion to datetime. please try to change on DateTime type.
Thank you.
Re: Format DateTime in Expression (MVC Designer)
Posted: Tue Oct 22, 2013 11:45 am
by romulocpd
Hello.
Yes, you're correct. Now it's running great!
Thank you.
Re: Format DateTime in Expression (MVC Designer)
Posted: Tue Oct 22, 2013 12:09 pm
by Alex K.
Hello,
We are always glad to help you!
Let us know if you need any additional help.
Re: Format DateTime in Expression (MVC Designer)
Posted: Tue Oct 22, 2013 12:39 pm
by romulocpd
I have other doubt: at end of the trial periodo, what happens with the tool and projects? The Stimulsoft stops to work or the message DEMO is always showed unless I buy the product?
Re: Format DateTime in Expression (MVC Designer)
Posted: Wed Oct 23, 2013 6:15 am
by HighAley
Hello.
Our trial period is unlimited in time and have no any limitation except DEMO watermark.
Thank you.
Re: Format DateTime in Expression (MVC Designer)
Posted: Wed Oct 23, 2013 8:14 am
by romulocpd
Great! Very good.