definitely standardize into 24 hr and number format
I am wondering though why you’d need to store number/text and not just a date?
wouldn’t you want to store the date for start and end? there are date time plugins that do this - although honestly they are pretty terrible UX for time selection.
What I normally do is create a reuseable for the date time selector. Put the data picker I like into it, plus then create a custom hour and minute selector to fit the clients preferences. Often this looks like either a dropdown of numbers, or a number input for hour/minute plus most US clients want 12 hr format so I put an AM/PM drop.
Then I write those values all into a date field in the database using “change hours to X” etc.
For a lot of apps I usually also just use UTC since most clients I work with find daylight savings confusing and put in the wrong times when crossing over the changeovers. So using UTC ensures the times never change.
2 Likes