Hi,
I have a string which will get the time with offset time. Since it is offset. I may require to split either using - or +. below is my code I tried so far.
This is not working at all. not sure where it goes wrong. Can any one help me on framing this please.
Thanks in advance,
Magesh
I have a string which will get the time with offset time. Since it is offset. I may require to split either using - or +. below is my code I tried so far.
Code:
$idealedt = $_REQUEST['committime']; // $idealdt = 03:45-05:00
$mytime = preg_split('/[-\+]/',$idealedt);
Thanks in advance,
Magesh
Comment