AnsweredAssumed Answered

Military Time for an API

Question asked by Kirk_1 on Sep 6, 2017
Latest reply on Sep 6, 2017 by philmodjunk

I’m sure someone has encounter this issue before… 


I have an API that requires Military time for operating hours.


My issue is that my customers don’t do it correctly. For ex. 800 fails, it’s supposed to be 0800.


I have a related customer table, and I can put the operating hours in it for them and pull it from there.




Some want to control and change the operating hours. I can’t spend the time fixing their time…


I’m trying to think of a calculation to fix this but what I’m coming up with is – how to recognize what they put in and validate it?


I’ve seen several variances in the way they input the time and can’t come up with something that covers them.


Also – I’m licensing it, there will be 1000’s of customers, so training the customer is probably not the best option.


Any ideas?