Is there an easy way to convert a string which contains a time in 24h format to AM/PM format.

Note: I don't want to work with any type which is depending on the regional settings.

Thanks