|
-
Oct 2nd, 2002, 02:34 PM
#1
Thread Starter
Addicted Member
Adding a colon to a time field if one doesn't exist.
I have a gridview control with a date/time column. It's quite old and was free with a magazine but it does the job...almost. It won't let me format the column to just time. It has to be date and time. If the user puts in a time without the colon, e.g. 1730 instead of 17:30, the program crashes.
That's my scenario. What I need is a function that puts in a colon after the first two digits of a time field if they don't exist.
This would help me out considerably.
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|