Hey guys, I’m in a bit of a pickle here…
So, my client is not happy with the airtime picker, nor the airtimedropper etc and just request a simple input for it. I need an input for opening hours, that is, the user is gonna type only the hours with the am/pm format.
I need to convert that text in to date for the database to work properly. Its okay if I endup with a date like 01-01-1970 hh:MM since I will only grab the hours anyways.
I’m thinking maybe using javascript expression “new Date(‘input’)” but I’m not really a JS dev at all, got confused there. Maybe convert to Json and to look for a timestamp? Does that make some sense?
Does anybody has more experience to guide me here?