Change first day of week to Monday

QuestionsChange first day of week to Monday
Vygandas asked 11 years ago

Howto ?

3 Answers
Abu Ghufran answered 11 years ago

You can use datepicker (jqueryui) options using opts param.
http://api.jqueryui.com/datepicker/#option-firstDay

"opts" => array("firstDay" => 1)

$col["formatoptions"] = array("srcformat"=>'Y-m-d',"newformat"=>'d.m.Y', "opts" => array("firstDay" => 1));

Rob answered 11 years ago

I wanted to change my start day to Sunday, so I change 1 for 0 and it works.. However, the search bar at the top of the column won't filter the day I select. If I take this line out it will work properly but the start day is back to Monday.

$col["formatoptions"] = array("opts" => array("firstDay" => 0);

Abu Ghufran answered 11 years ago

Hello,

I am unable to regenerate this case. I used this formatoptions and working as expected.
$col["formatoptions"] = array("srcformat"=>'Y-m-d',"newformat"=>'Y-m-d', "opts" => array("firstDay" => 0));

Your Answer

17 + 2 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?