New field type on its way: Datepicker 2

Just wanna give you some short info about a new field type that soon will arrive in Simple Fields: The jQuery DatePicker field type. Or as I like to call it: “Datepicker 2”.

While Simple Fields already has a date field, it has some shortcomings. One big is the fact that it stores the selected date in the database as a string in the format “dd-mm-yyyy”, which makes it difficult to sort posts by this selected date.

To overcome this the new field will store the selected date – and possibly time in the future too – as a unix timestamp. This will make it very easy to sort posts by date.

It will also feature some other good things:

  • An option to set default date (no date or current date)
  • Optionally always show the date picker, so there is no need to click a text box or similar. Makes it a bit more user friendly at times
  • The date format that is shown can be customized.
  • And of course it will use Extended Return Values by default
Its not fully done yet, but give me the weekend to finnish.
Oh, and the whole plugin is of course written using the (pretty) new Extension API. 🙂

Leave a Reply