Subject | Re: [firebird-support] Re: Formatting Brazilian dates in triggers and stored procedures |
---|---|
Author | Alexandre Benson Smith |
Post date | 2009-07-29T19:46:02Z |
rc.199011 wrote:
client application.
But, as long as you want it done on the server, I suggest you to use an
UDF to format it, if I recall correct rFunc has a FormatDate function.
see you !
--
Alexandre Benson Smith
Development
THOR Software e Comercial Ltda
Santo Andre - Sao Paulo - Brazil
www.thorsoftware.com.br
> My problem is not on data modelling, but on user receiving emails with long texts concerning company information. For instance, receiving a sentece like this "You product is available since 2004-11-08 14:45:55.0000. Please, call us back as soon as possible." Brazilian people expect to read date information in the format "dd/mm/yyyy".I am the kind of guy that thinks that data formatting should be done by
>
> I use triggers and stored procedures to store this kind of long-text information on special external tables that are translated to XML and used from an external tool to send email and SMS to customers and suppliers.
>
> My problem now is that my triggers and SPs are getting too much long and difficult to understand because of the amount of date and time information that I have to transform in readable text.
>
> That's why I am questioning whether would be another easier solution to format date information in selects, maybe something simple such as Delphi's FormatDateTime function.
>
> Thanks,
>
> Roberto Carlos
>
client application.
But, as long as you want it done on the server, I suggest you to use an
UDF to format it, if I recall correct rFunc has a FormatDate function.
see you !
--
Alexandre Benson Smith
Development
THOR Software e Comercial Ltda
Santo Andre - Sao Paulo - Brazil
www.thorsoftware.com.br