Skip to content

Binding time.Time with a format tag #2805

@Rudis1261

Description

@Rudis1261

I am keen to use datetime_local input fields for simple projects that post a custom format to the API.

I can currently support this with custom types which formatters, and binders, a bunch of boilerplate, but it feels like for a time.Time field, it would be awesome to be able to add a tag, for instance, format:datetime:"2006-01-02T15:04", or if I wanted to for a date input field type then I could also support that simply with a tag.

Sounds like a decent idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions