I've made a new form element type of datetime which I'm currently using in one of my modules. I think it would be better placed being part of a form element pack module such as this. Please review and let me know what you think.

CommentFileSizeAuthor
datetime_form_field.tar_.gz2.39 KBGekiboy

Comments

dave reid’s picture

Status: Needs review » Closed (won't fix)

I'd much prefer people use Date API which provides datetime elements for forms.

jenlampton’s picture

It doesn't look like you can use a date api form element unless it's on a field :/

dave reid’s picture

Title: Datetime Form Field » Backport D8 HTML5 date elements
Version: 6.x-1.x-dev » 7.x-1.x-dev
Assigned: Unassigned » dave reid
Status: Closed (won't fix) » Active

@jenlampton: Well in the three years since I've had a chance to re-evaluate. I've been planning on backporting the HTML5 date/datetime/time elements to this module, but hadn't filed an issue yet.

thekevinday’s picture

There is an old thread here with a patch: #1328650: HTML5 Date Input form elements.

malcomio’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)
Related issues: +#1328650: HTML5 Date Input form elements

Seems to be a duplicate of the issue mentioned by thekevinday: #1328650: HTML5 Date Input form elements

There's also #876780: Add Date elements - I've also marked that as a duplicate.