Is there a good C# function to verify if a date is valid? Right now I am
casting a date that is in string form (Convert.ToDateTime(dateString)) and
catching an exception. This seems sort of lame.
???
Well, you could use DateTime.Parse(String); but you will still have to catch
an exception (FormatException).
"S" <sp******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Is there a good C# function to verify if a date is valid? Right now I am casting a date that is in string form (Convert.ToDateTime(dateString)) and catching an exception. This seems sort of lame.
???
You can use RegEx to test for valid date patter. Check this site for some
regex patters: http://www.regexlib.com/
"S" <sp******@hotmail.com> wrote in message
news:#s**************@TK2MSFTNGP09.phx.gbl...
Is there a good C# function to verify if a date is valid? Right now I am casting a date that is in string form (Convert.ToDateTime(dateString)) and catching an exception. This seems sort of lame.
???
Hello all,
I have the script below to change an image depending on the date upto
january it worked fine but then it just stopped working does anybody have an
idea how I can make it work again or...
Below is the sql for data with same date need
to extract + or - 5 days data of same date also.
How to also get data of + and - days related to same date.
SELECT IM.Area,
IM.Location,...
Hi,
I have a working script that converts a dd/mm/yyyy text box date entry
to yyyy/mm/dd and compares it to the current date, giving an error
through an asp.net custom validator, it is as...
Just a quick question...I'm running an MS Access 2007 db that tracks appointments in a single table. Date and time are entered as separate fields in short date (mm/dd/yyyy) and short time (hh:mm)...
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...