i want to validate datepicker in vb6.
i have datepicker in one of the forms of my project, i m using this datepicker for the birthdate,so i want to check is user selects todays date while filling the form then i want to display error message.

use the DateDiff function (see help for how to use) and test DTP.Value versus Date...

Good Luck

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.