Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Angelo 111 posts 260 karma points
    Sep 25, 2018 @ 17:36
    Angelo
    0

    Setting DateTime Culture

    Hello Nicholas

    is there a way to configure culture for dateTime inputs ?

    thank you

    Angelo

  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Sep 25, 2018 @ 19:32
    Nicholas Westby
    0

    Not sure, I've never tried. Maybe that can be set globally on the server side? But then, that might do weird things when submitting the form, as the frontend of the website would not be aware of the server side culture (e.g., some cultures may swap the order of the day and month), which could lead to parsing issues.

    Maybe you could create a new specialized date time field and then you can customize it as you like: http://www.formulate.rocks/articles/custom-field-types

  • Angelo 111 posts 260 karma points
    Sep 25, 2018 @ 19:49
    Angelo
    0

    Can you tell what datetime plugin are you using ?

    maybe it has some config or something ...

    thank you

    Angelo

  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Sep 25, 2018 @ 20:11
    Nicholas Westby
    0

    IIRC, it's using the native date input: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date

    You can override the frontend to use something different. Or you can build an entirely new field type.

  • Angelo 111 posts 260 karma points
    Sep 25, 2018 @ 20:12
    Angelo
    0

    Ok Nicholas thank you :)

    Angelo

Please Sign in or register to post replies

Write your reply to:

Draft