Duration format DDd HHh MMm - supress zeros?

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Duration format DDd HHh MMm - supress zeros?

Post by tford »

I'm using DDd HHh MMm formatting for a attribute of Duration type.

For a duration of 30 minutes, it shows: 0d 0h 30m

Is there any way to supress the 0d and 0h when they are zero and instead display: 30m

or display 13h 30m when the days are zero?

Thanks,
Tom
Post Reply