Hello everyone, I would like to know how to set times for each lesson and each day of the week..

BlazeBin - qutrntuyfvdd
A tool for sharing your source code with the world!
9 Replies
The king of kings
For example! Monday 10:00 - 10:30 Tuesday 09:00 - 09:30 Wednesday 11:00 - 11:30 I have already specified the days of the week, but don't know how to set the times for the physical activity lessons!
Angius
Angius2y ago
You can use TimeOnly struct to only have the data about the time of the day, not the day itself Alternatively, TimeSpan
The king of kings
Ok! So would I be able to display the day and the time?
Angius
Angius2y ago
Can't see why not
The king of kings
Ok! Wonderful. I'll give it a try then 🙂 thanks a lot One more question Is it possible to specify a real time o'clock depending in the zone that we live in?
Angius
Angius2y ago
Both DateTime and TimeOnly have ways to convert the time between timezones
The king of kings
Or should we use date base to specify a real time for our zone when building an app Aha! Ok I'm guessing that it will get more complicated if I would like to use the time feature if I wanted to use my time zone which is here in Sweden in my project.
Angius
Angius2y ago
By default, the time zone will be your local time zone, IIRC Unless you go out of your way to use UTC or something, it should be fine
The king of kings
Aha! Ok! I got it. Thanks a lot for your unlimited help 🙏 🙂