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
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!
You can use
TimeOnly
struct to only have the data about the time of the day, not the day itself
Alternatively, TimeSpan
Ok! So would I be able to display the day and the time?
Can't see why not
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?
Both
DateTime
and TimeOnly
have ways to convert the time between timezonesOr 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.
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
Aha! Ok! I got it.
Thanks a lot for your unlimited help 🙏 🙂