Simplest way is manually. Either that or find some library or copy/paste existing code. Theres no standard function to do something like that.

You have to manually parse the string, converting...