• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Help with validating a date input to a dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with validating a date input to a dialog


  • Subject: Re: Help with validating a date input to a dialog
  • From: "Christopher C. Stone" <email@hidden>
  • Date: Sat, 31 Mar 2001 00:42:13 -0600

Hello Michelle,

Here's how I would do the date validation with RegEx Commands.

set d to "05/04/1961"

set flag to REMatch d pattern "^\\d\\d/\\d\\d/\\d\\d\\d\\d$"

if flag is not "" then
-- do your thing
end if


--
Best Regards,

Christopher Stone
______________________________
StoneWorks Computer Consulting
email@hidden


References: 
 >Re: Help with validating a date input to a dialog (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Help with validating a date input to a dialog
  • Next by Date: Re: Help with validating a date input to a dialog
  • Previous by thread: Re: Help with validating a date input to a dialog
  • Next by thread: Re: Help with validating a date input to a dialog
  • Index(es):
    • Date
    • Thread