I have an API that can get the current time in the Unix format but what I also need is say my test has a DOB variable (04/03/1980) and I need to convert that to the unix format to write to our reporting software and I am coming up empty. Has anyone done this within EPF by chance
Could you please provide that DOB in the format you need, and I can assist you to find the correct option in SenseTalk? I don’t want to assume that I know what you mean by Unix format.
Thanks,
Dave
The main format we get DOB in is yyyy-MM-dd (1980-04-03), if another format we end up converting to this for storage so safe to say that this the one. The unix value I am trying to get to would be or 323589600 (or the system we are sending to needs 323589600000 but that I can figure out). I will admit I havent spent to much time looking into it outside some quick googling for APIs (coming up short) and looking at the EPF docs and not seeing it. I thought about building a handler to calculate this but didnt try it out yet.
I could covert the DOB to milliseconds I guess, then subtrack from the time UNIX one starts (in 1970 I think). Just thought maybe I am thinking about this all wrong and might get a cleaner solution
Yes, SenseTalk recognizes a lot of different date formats out of the box.
Going back to your original question, you can display dates in different formats as well.
put the international date of "04/03/1980" --> 1980-04-03
or for any format more generally
put date("04/03/1980") with format "[year]-[mo]-[da]" --> 1980-04-03