IsDate date format

  • Thread starter Sebastian Santacroce
  • Start date
S

Sebastian Santacroce

Hi,
I am trying to use IsDate where the application will use a
format of Month/day/year however on a system that uses
day/month/year then IsDate uses that system format setting
when evaluating if its a valid date. I want IsDate to use
Month/Day/Year when validating and so independently from
the system date format. How can I do this?

Thanks,

Seb
 
H

Herfried K. Wagner [MVP]

* "Sebastian Santacroce said:
I want IsDate to use
Month/Day/Year when validating and so independently from
the system date format.

Use 'Date.ParseExact' insead + a 'Try...Catch' exception handler.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top