Answered by:
Day of Week v DateTime Properties

Question
-
User2074931137 posted
Is there a way for day of week to be displayed in DateTime properties?
Friday, February 15, 2019 1:29 PM
Answers
-
User475983607 posted
Is there a way for day of week to be displayed in DateTime properties?
Unclear. The DateTime type has a DayOfWeek property.
https://docs.microsoft.com/en-us/dotnet/api/system.datetime.dayofweek?view=netframework-4.7.2
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, February 15, 2019 5:53 PM -
User1520731567 posted
Hi 3v3rhart,
Is there a way for day of week to be displayed in DateTime properties?If you want to set first day of the week to Monday with integer value 1,you could convert date to int,like:
int day = (int)DateTime.Now.DayOfWeek;// today is '2019/02/18',show:1
else:
var day2 = DateTime.Now.DayOfWeek; //show:Monday
Best Regards.
Yuki Tao
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, February 18, 2019 6:56 AM
All replies
-
User475983607 posted
Is there a way for day of week to be displayed in DateTime properties?
Unclear. The DateTime type has a DayOfWeek property.
https://docs.microsoft.com/en-us/dotnet/api/system.datetime.dayofweek?view=netframework-4.7.2
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, February 15, 2019 5:53 PM -
User1520731567 posted
Hi 3v3rhart,
Is there a way for day of week to be displayed in DateTime properties?If you want to set first day of the week to Monday with integer value 1,you could convert date to int,like:
int day = (int)DateTime.Now.DayOfWeek;// today is '2019/02/18',show:1
else:
var day2 = DateTime.Now.DayOfWeek; //show:Monday
Best Regards.
Yuki Tao
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, February 18, 2019 6:56 AM