Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,I just implemented the "Razor Calendar Examples" and was wondering if anybody could point me in the right direction to have the csyCalendarMini.cshtml weekdays start with Monday instead of Sunday?
thanks!J
Change the macro, move Sunday to the end of the week:
@helper getCalendar() { <div class="calHeader"> <a href="@Model.Url@prevLink"><</a> <span>@dateString</span> <a href="@Model.Url@nextLink">></a></div> <table class="sm_calendar"> <tr> <th> <abbr title="Monday"> Mon</abbr> </th> <th> <abbr title="Tuesday"> Tue</abbr> </th> <th> <abbr title="Wednesday"> Wed</abbr> </th> <th> <abbr title="Thursday"> Thu</abbr> </th> <th> <abbr title="Friday"> Fri</abbr> </th> <th> <abbr title="Saturday"> Sat</abbr> </th> <th> <abbr title="Sunday"> Sun</abbr> </th> </tr>
And -1 from the dayOfWeek variable.
dayOfWeek = (int)dt.DayOfWeek - 1;
Thanks!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Question on "Razor Calendar Examples" package
Hi,
I just implemented the "Razor Calendar Examples" and was wondering if anybody could point me in the right direction to have the csyCalendarMini.cshtml weekdays start with Monday instead of Sunday?
thanks!
J
Change the macro, move Sunday to the end of the week:
And -1 from the dayOfWeek variable.
Thanks!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.