lblWeek.Text = (((((int)DateTime.Today.DayOfWeek )- 1) * 24) - decimal.Parse(DateTime.Now.ToString("HH")) - 1 / 168 * 100).ToString();Loading
lblWeek.Text = (((((int)DateTime.Today.DayOfWeek )- 1) * 24) - decimal.Parse(DateTime.Now.ToString("HH")) - 1 / 168 * 100).ToString();Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Guest UserPosted Dec 19, 2022, 1:12 PM
i will try month 744 hours
with progress bar
I will upload Image
Deepak TewatiaPosted Dec 18, 2022, 3:57 AM
Hi shoaib,
please try the below code.
If you want to display the time in a week-wise format, you can use the following code:
This will display the current week number and the current time in the label, with "Week" as the prefix. For example, if the current week is the 50 of the year and the current time is 09:36 AM, the label will display "Week 50: 09:36 AM".