Help talk:Type Date

Problems and workarounds
Some of the problems with dates are discussed in this message to the SMW mailing list from Krabina Bernhard on about 24 Sep 2013 under the heading "querying for parts of date":

Dear all,

I have put some more effort in this and accomplished a decent parsing of incomplete dates. But of course, the next bug was waiting for me: Years may be incorrectly stored as "1 January 1970" + timestamp (Bug 54151). A workaround is to add "AD" or "BC" to the value. [1] In my wiki this happens if a date property is set to a year smaller than 1000. So "May 990" works, but "990" not.

You can see the template with the parsing here [2] and the result here [3].

If I use the "AD" my parsing does not work, so I still have to take care of that.

And all of this, just because SMW cannot query the month of a property of type::date "September 2013" :-/

[1] https://www.semantic-mediawiki.org/wiki/Help:Type_Date#Open_Issues [2] http://standards.kdz.eu/index.php?title=Vorlage:Person&action=edit [3] http://standards.kdz.eu/index.php?title=Benutzer:Admin

I wonder if any of that helps our experts. -- Robin Patterson (Talk) 23:08, September 24, 2013 (UTC)