Hi everyone:
How can insert : (colon) in time, while ensuring that the colon that currently exists doesn't get removed?
What I mean is that we have users who use our application to process certain time-critical information.
sometimes, they enter time as 930 (9:30) or 1100 (11:00). Some other times, the same informaton is entered with colon.
My question is this, how can ensure when time is entered in the format described above, that the time is properly formatted?
For instance, if they enter time as 930 or 1145, then they are properly converted to 9:30 or 11:45 respectively.
By the same token, if it is entered correctly such as 9:30 or 11:45, the script that does the conversion, doesn't mess the correct format up?
Thanks in advance
How can insert : (colon) in time, while ensuring that the colon that currently exists doesn't get removed?
What I mean is that we have users who use our application to process certain time-critical information.
sometimes, they enter time as 930 (9:30) or 1100 (11:00). Some other times, the same informaton is entered with colon.
My question is this, how can ensure when time is entered in the format described above, that the time is properly formatted?
For instance, if they enter time as 930 or 1145, then they are properly converted to 9:30 or 11:45 respectively.
By the same token, if it is entered correctly such as 9:30 or 11:45, the script that does the conversion, doesn't mess the correct format up?
Thanks in advance