We help IT Professionals succeed at work.

compare dates?

brohans
brohans asked
on
Medium Priority
214 Views
Last Modified: 2010-05-03
how do i compare dates? i need like
to know where dateofbirth < dateemployed?
since dateofbirth cannot be latter than dateemployed
so it should output an error mesg..how do i do this?
how do i check whether the date_x = date_y?
Comment
Watch Question

Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
brohans, if date_x and date_y are both of type Date then you can simply say If date_x = date_y Then
Or use any other comparision operators like <, > etc.,
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.