Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index

Le 02/03/11 16:08, Leslie D. Martin a écrit :

Hi again Leslie,

Interesting. I have the field masked as YYYY which I understood tells Base
to expect and accept only a year number. If I put in a full date (ie,
01/01/1996) the year shows up correctly. This doesn't seem to be proper
behaviour to me.

No it isn't, in the sense that the formatting you specified isn't
applied, but if you configured your database field as DATE, then in Base
that means whatever the locale representation string is, e.g.
"YYYY-MM-DD", so Base doesn't understand when you just type in the year.
This is why it works when you type in the whole date.

This, of course, brings up two questions: 1) how do I make this work the way
I need (having a field where the user simply puts in the 14-digit year); 

I have no answer to that one other than configuring your database field
as INT(4) and using an integer to represent the year as YYYY instead,
but this means that you get only that data in the database, and not the
whole date. I'm pretty certain that this problem has already come up on
the forums (but not necessarily their mailing lists).

how do we get this fixed in Base so that it works correctly without having
to resort to the work-around requested in item 1 (see previous)?

I can't see this happening in LibO anytime soon, there is a noticeable
and rather worrying dearth of Base developers in the LibO developer's group.


Unsubscribe instructions: E-mail to
List archive:
*** All posts to this list are publicly archived for eternity ***


Privacy Policy | Impressum (Legal Info) | Copyright information: 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.