Functions TO_CHAR, TO_DATE and TO_TIMESTAMP convert between strings and date
values and accept 'yyyy' as part of the string format specification so the
function gets a hint that the text assumes dd/mm/yyyy format, yyyy-mm-dd or
whatever. These functions are unavaillable in the built-in HSQLDB 1.8
This is the documentation of the DATEDIFF function:
DATEDIFF ( <field>, <datetime value expr 1>, datetime value expr 2> )
<field> ::= 'yy' | 'mm' | 'dd' | 'hh' | 'mi' | 'ss' | 'ms'
The function always rounds up to full integers stating that you are in your
73th year. Knowing this, you can calculate the common age (completed years)
with my little formula.
It gets the completed years from months divided by 12 and if the months are
the same it tests if the today is before or after the birthday.
View this message in context:
Sent from the Users mailing list archive at Nabble.com.
For unsubscribe instructions e-mail to: firstname.lastname@example.org
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
Impressum (Legal Info)
: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (MPLv2
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our trademark policy