Results 1 to 4 of 4

Thread: Format date automatically in text box

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2000
    Location
    bebenia, PA, USA
    Posts
    241
    I have a group box in my program where the user inputs a date they are suppose to type it in this format mm/d/yy; there is no error routine if they don't do it i have just limited the characters this data then is updated to a database that uses that particular field. I am using the databound control and hook that field up to it's corresponding field in my database. Is there a way that i can have the box automatically format the date or prompt them if it's not entered correctly; anyone have any ideas on how they would do this. I need to gurantee that i always have an accurate response go to the database.

    thank you !!!

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Try to use CDate and isdate functions

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2000
    Location
    bebenia, PA, USA
    Posts
    241
    sorry not a group box a text box; lol

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Mar 2000
    Location
    bebenia, PA, USA
    Posts
    241
    used the date time picker control in vb6 works great in the properties you can automatically format the date!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width