Illegal property values + sorting

Edited by another user.
Last edit: 19:00, 27 April 2016

Just a couple of short questions:

  1. Can SMW support "partial dates"? Let's say, I would like to make an event article with date set to 1990-01-xx as I'm still not sure what the correct date is, effectively read as "just January 1990". Is there any workaround to use it in SMW? (Maybe "Allows pattern" but with date-semantics, not text, somehow?)
  2. My "partial dates" lead to errors marked with exclamation marks, and that's fully clear why. However, would it be possible not to exclude broken pages from the #ask result refined with | sort = Has date?


10:02, 25 April 2016
  1. Indeed, currently only things shown on the help page for datatype date are possible so this would be a feature request. Probably you could recreate an example setup at and link to this when creating and elaborating the feature request at Personally I cannot assess if it will be possible to support partial dates such as year-month or month-day.
  2. Perhaps you could additionally set some kind of "helper" property which is automatically set in a way that it allows sorting, e.g. a property of type text: So a date like January 1, 2016 could be 20160101 or January 1990 would be 19900100 etc. and sorted accordingly afterwards.
19:02, 27 April 2016

> still not sure what the correct date is, effectively read as "just January 1990". Is there any workaround to use it in

I'm not sure what the problem is but annotations like Jan 1990 are supported, please have a look at [0].

Of course 1990-01-xx is not supported because the parser doesn't know how -xx should be interpret and I'm not entirely sure to have the parser in future to assume that it means Jan 1990.


21:12, 27 April 2016

Oops, that's news to me. Did not know that this was working though admittedly a couple of years passed since I had a more intense peep at something like this. Great!

21:24, 27 April 2016

> I'm not sure what the problem is

Me and my inattention... Reading the official documentation always helps, and I'm very sorry for being not careful reading it. Thank you very much! Also I noticed that for some reason I used Has type::Text instead of Has type::Date for one my properties whilst the rest were and are well-typed. Fixed it locally.

P.S. It looks like YYYY-MM can work as well thus I need neither xx nor 00. That's awesome!

10:55, 28 April 2016