Date-field-test:1

This is the test of the new dataform field type = date
( see also http://feedback.wikidot.com/wish:365/comments/show#post-1819761 )

Every registered Wikidot account can add/edit a page in this category!

form_data:

Date field 1: 1372892400

Date field 1 (in form [[date %form_data{date-1}% format="%e %b %Y, %H:%M %Z"]]:

03 Jul 2013 23:00

Date field 2: 1374616800)

Date field 2 (in form [[date %form_data{date-2}% format="%Y-%m-%d %T"]]:

23 Jul 2013 22:00

Form_raw:

Date field 1: 1372892400

Date field 1 (in form [[date %form_raw{date-1}% format="%e %b %Y, %H:%M %Z"]]: 03 Jul 2013 23:00

Date field 2: 1374616800)

Date field 2 (in form [[date %form_raw{date-2}% format="%e %b %Y, %H:%M %Z"]]: 23 Jul 2013 22:00

—-
Using template page: _template

Using the Date format parameters - collected in http://community.wikidot.com/howto:frontforum-date-variable
——

+++ form_data:

Date field 1: @@1372892400@@

Date field 2: @@1374616800)@@

Date field 2: @@formatDate("yy-mm-dd",1374616800)@@

+++ Form_raw:

Date field 1: @@1372892400@@

Date field 2: @@1374616800)@@

Date field 2: @@formatDate("yy-mm-dd",1374616800)@@

---
[[form]]
fields:
  date-1:
    label: Date field 1
    type: date
    options:
      changeYear: true
      yearRange: "1900:2020"
      dateFormat: "yy-mm-dd"
  date-2:
    label: Date field 2
    type: date
    options:
      showMonthAfterYear: true
      maxDate: "+1w"
      minDate: "-1d"
      showOn: "button"
      buttonImageOnly: true
[[/form]]