I am working on soap EFS(electronic fund source)API. I have to get date form user which will be in mm-dd-yyyy
and I have to pass this date as param in 2017-09-18T13:20:47-07:00
format.
How to convert data in 2017-09-18T13:20:47-07:00 format ?
I am working on soap EFS(electronic fund source)API. I have to get date form user which will be in mm-dd-yyyy
and I have to pass this date as param in 2017-09-18T13:20:47-07:00
format.
How to convert data in 2017-09-18T13:20:47-07:00 format ?
Try below method for convert Date for soap as per PHP DOCUMENT
Also, you have to pass time which is not in question. Below is not final answer but you can go throw something like this.
echo $dt->format('YY "-" MM "-" DD "T" HH ":" II ":" SS tzcorrection');