How to change the locale startOfweek ? #272
Answered
by
jama5262
abdullah-cse
asked this question in
Q&A
-
Thanks for awesome Package!😍 It's made my life easier. I'm only struggling about how to change localeStartOfWeek manually. //Getting default Start Date of Week
var defaultStartOfWeek = Jiffy.now().localeStartOfWeek;
print(defaultStartOfWeek); //StartOfWeek.sunday
//Trying to change Start Date of Week manually
defaultStartOfWeek = StartOfWeek.monday;
var xyz = Jiffy.now();
//Expected Output= StartOfWeek.monday
print(xyz.localeStartOfWeek); //StartOfWeek.sunday
Here in this snippet, expecting So, why i need this as user can get startOfWeek by their locale?If user want to change First date of week manually. So how to change |
Beta Was this translation helpful? Give feedback.
Answered by
jama5262
May 12, 2024
Replies: 1 comment
-
Hey @abdullah-cse Glad you like And yes, we should have a way to manually set the start day of week, since its really in demand Will work on it, and see how first I can ship this feature out |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
abdullah-cse
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @abdullah-cse
Glad you like
Jiffy
And yes, we should have a way to manually set the start day of week, since its really in demand
Will work on it, and see how first I can ship this feature out