<div>
                    I use something like:
                </div><div><br></div><div><div>    <<Year:4/binary,"-",</div><div>      Month:2/binary,"-",</div><div>      Day:2/binary,"T",</div><div>      Hour:2/binary,":",</div><div>      Minute:2/binary,":",</div><div>      Second:2/binary,</div><div>      _Rem/binary>> = list_to_binary(Date)</div></div><div><br></div><div>from there, it's trivial to return a datetime() tuple.</div><div><br></div><div>Cheers,</div><div><br></div><div>Steve</div>
                <div><div><br></div><div>-- </div>Steve Strong<div>@srstrong</div><div><br>Sent with <a href="http://www.sparrowmailapp.com/?sig">Sparrow</a></div><div><br></div></div>
                 
                <p style="color: #A0A0A8;">On Wednesday, 14 December 2011 at 22:18, Joel Reymont wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div><div>Is there a function somewhere to parse a date like this: </div><div><br></div><div>2008-06-30T00:00:00.000Z</div><div><br></div><div>    Thanks, Joel </div><div><br></div><div>---</div><div>Hardcore embedded Linux development</div><div><a href="http://www.linkedin.com/in/joelreymont">http://www.linkedin.com/in/joelreymont</a></div><div>Device drivers, firmware and debugging</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>_______________________________________________</div><div>erlang-questions mailing list</div><div><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a></div><div><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a></div></div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>