I have a DateTime property for which I've only set the time:
OpenHour = DateTimeOffset.ParseExact("12:00:00 AM", "hh:mm:ss tt", CultureInfo.InvariantCulture)
But the day has also been saved as the day I've saved this property value. I only wanted to set the time without the day so that it would be the same time every day.
Is there a way to do this ? Or do I need to create as CronJob to update every date's day to today's day ?
Edit
I'm not trying to create a time only value but know which way is best between creating a Cron Job to update the day of the time every day or if there's a better way.
And I tried to save it as strings but I needed to change it to DateTime to be able to use OrderBy when querying the place's list of hours and I've tried with strings it wasn't working.
Thank you for your help