Home Forums Plugin Support WP User Frontend Pro Start the week on Monday instead of Sunday

This topic is: resolved

Tagged: 

This topic contains 4 replies, has 2 voices, and was last updated by  Ivar 5 years, 2 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #17402

    Ivar
    Member
    Post count: 7

    Hey,

    Is it possible to let the weeks in the date field start on Monday instead of Sunday?

    Thank you in advance.

    #17406

    Tareq Hasan
    Keymaster
    Post count: 2831

    On /class/render-form.php line 1478, change the line with this $("#wpuf-date-< ?php echo $attr['name']; ?>").datepicker({ dateFormat: '< ?php echo $attr["format"]; ?>', firstDay: 1 });

    #17407

    Ivar
    Member
    Post count: 7

    Beautiful, firstDay: 1 did the trick, thanks alot.

    By the way, not really related to this question, but is there any smooth way to add own input fields to the form creator? As <input type="number" />. Is the code extendable in this way?

    #17410

    Tareq Hasan
    Keymaster
    Post count: 2831

    You can use the HTML field or try this http://docs.wedevs.com/using-action-hook-field/

    #17490

    Ivar
    Member
    Post count: 7

    Thank you.

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Start the week on Monday instead of Sunday’ is closed to new replies.