# Convert c to U

**URL:** <https://forum.kirupa.com/t/convert-c-to-u/270815>\
**Category:** programming\
**Created:** [September 14, 2008, 7:08pm UTC](https://forum.kirupa.com/t/convert-c-to-u/270815 "2008-09-14T19:08:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Valerij](https://avatars.discourse-cdn.com/v4/letter/v/e68b1a/32.png) [@Valerij](https://forum.kirupa.com/u/Valerij)\
**Post date:** [September 14, 2008, 7:08pm UTC](https://forum.kirupa.com/t/convert-c-to-u/270815/1 "2008-09-14T19:08:19Z")

</div>

Hi guys,  
Is it possible to convert ISO 8601 date to Unix timestamp?  
[http://no2.php.net/manual/en/function.date.php](http://no2.php.net/manual/en/function.date.php)  
Also from c to U according to this table…

Note that I have everything in one variable so I cant for example use the mktime(). Unless someone knows a way to spilt something like this 2008-02-19T09:16:46-08:00 into pieces 😮

Ive searched google and the only results was on how to convert Unix timestamp into this, but I need it the other way…

Thanks.
