Please be specific in your question. You do not show us the type of timeParts
. I'm going to assume that the Minutes
, Seconds
, and Milliseconds
properties are Int32.
The documentation for the .Net Micro Framework is available on MSDN here. If you drill down into the methods for System.Int32 you will see a very limited version of the formats the ToString() method accepts.
There seems to be an open source project, .Net Micro Framework Common Extensions, which implements some of the string manipulation features of the full .Net framework. They might have what you need, or you could write your own specific formatter.