tiger66
08-28-2003, 11:43 AM
Hi
I am trying to get the current minutes of time.
I tried getMinutes(); mothod
when the minutes is single digit, it doesn't attach a zero before the digit.
e.g. time=12:07, it outputs 12:7 instead of 12:07
Is there a method to correct this problem? or do I need to manually correct it - write statment and attach a 0?
Thank
I am trying to get the current minutes of time.
I tried getMinutes(); mothod
when the minutes is single digit, it doesn't attach a zero before the digit.
e.g. time=12:07, it outputs 12:7 instead of 12:07
Is there a method to correct this problem? or do I need to manually correct it - write statment and attach a 0?
Thank