Edgar T. López wrote:
Hi Bob,
Remember that these strings are the PDB's names that were created for my
application. So I need to work with strings, that´s why I ask you if you know
there is a function seems to the DateTemplateToAscii function, but for the
format Time.
how you said, I need to set 05_06_24_08.30.07" instead of "05_06_24_8.30.07".
With DateTemplateToAscii I can put zeros to fill the two digits(01,02,03,,,09).
Best Regards.
Edgar T. López
Ah. I thought that you were sorting by database name AND the
date/time. In that case you need to get the name right so that it sorts
correctly. I'm don't see an API function that will format the time with
leading zeros, but I haven't looked very carefully. I'd suggest that
you make sure that the database gets named correctly upon creation.
Just use your own code that takes the hour/min/sec and formats them how
you like. Bob.
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/