Results 1 to 2 of 2

Thread: time problem

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2001
    Location
    India,Karnataka,Bangalore
    Posts
    61

    time problem

    hi friends

    here me, again with another naughty problem

    i have 2 maskedit controls

    1) for from time
    2) for to time

    and the mask is '99:99 A' and format is 'hh:mm AM/PM'.

    please tell me how to validate these controls to get
    the valid times. and also to check the time difference
    between these. i want the user to enter 'from time' lesser
    than 'to time'

    coding please?

    and thanks for all those who gave me idea and coding to get valid leap year and date.
    especially for nucleus

  2. #2
    Registered User Nucleus's Avatar
    Join Date
    Apr 2001
    Location
    So that's what you are up to ;)
    Posts
    2,530
    1. In the validate event of each masked edit box use the isdate() function to validate the time.




    i want the user to enter 'from time' lesser
    than 'to time'
    2.You need to have a button on the form where a user click's submit. In the click event of this button you can do record level validation to check if from time is lesser than to time, before committing to the db.

    and thanks for all those who gave me idea and coding to get valid leap year and date.
    especially for nucleus
    Nice to be remembered

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