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 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: http://nabble.documentfoundation.org/Fw-LibreO-Base-is-lying-about-my-age-tp3749948p3752245.html Sent from the Users mailing list archive at Nabble.com. -- For unsubscribe instructions e-mail to: users+help@global.libreoffice.org Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ 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