I use API of service which return me c# DateTime string:
/Date(1327914214000+0400)/
And i should convert it to unixstamp, because i use php. So how can I do that?
I use API of service which return me c# DateTime string: /Date(1327914214000+0400)/ And i
Share
PHP’s
[strtotime][1]function is perfect for this. It can handle most common date formats, including strings.Another option is with MySQL functions FROM_UNIXTIME and UNIX_TIMESTAMP
This usually is faster than a PHP function call.