473,406 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

ASP & Date Functions

Tim
Hi, I was wondering if there was a function in ASP that
checks a date to see if it is valid or not. I am aware
of the IsDate function, but I think its not what I'm
looking for. I want to run the following date through a
function and have the function tell me that it is
invalid: 31-Feb-2003 (cos there is not 31 days in Feb).

Does anyone know of a function to help me? Or a good way
to make my own function?

TIA>
Jul 19 '05 #1
2 3303
If you do some string manipulation with your date, you can still use IsDate.
How are you getting your date? Will you know if it will always be
Day-Month-Year? If so, you can re-arrange the string and test it. Like,
IsDate will return true for "Feb 28 2003" (with my US regional settings).
So, just rearrange your string and use IsDate still.

Ray at home

"Tim" <ti**@smithscity.co.nz> wrote in message
news:07****************************@phx.gbl...
Hi, I was wondering if there was a function in ASP that
checks a date to see if it is valid or not. I am aware
of the IsDate function, but I think its not what I'm
looking for. I want to run the following date through a
function and have the function tell me that it is
invalid: 31-Feb-2003 (cos there is not 31 days in Feb).

Does anyone know of a function to help me? Or a good way
to make my own function?

TIA>

Jul 19 '05 #2
Please don't multipost. I've already replied to this question over at
..asp.db. If you feel you must direct your question at multiple
newsgroups*, then post one single message to the desired groups by
putting the group names into the To list (aka crosspost)

*.asp.db is the only group you needed to post this to. Your question
concerns asp and database code: absolutely no ambiguity.

Bob
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

192
by: Kwan Ting | last post by:
The_Sage, I see you've gotten yourself a twin asking for program in comp.lang.c++ . http://groups.google.co.uk/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&th=45cd1b289c71c33c&rnum=1 If you the oh so mighty...
3
by: solartimba | last post by:
Basic question: I am using STL for the first time, and I want to put the following class into a vector. What member functions/overloaded operators do I have to include? In general, when using...
4
by: kinne | last post by:
The following code is supposed to reverse the date in "yyyy-mm-dd" format, but it produces different results in Firefox 1.0 and in Internet Explorer 6SP1. In Firefox, the result is correct...
2
by: p175 | last post by:
People, I have an ESE 8.2.2 database running on win2k server . I need to do some system testing that requires I reset the dates back a couple of years then progressivily move it forward to...
1
by: LL | last post by:
Hi, How to get the current Date & Time? Date() & Time() ? Thanks.
3
by: divya | last post by:
Hi, I have a table tblbwday with 2 fields Name and Birthday.I have written this script for displaying evryday names of the people on that day. <% set objConn...
0
by: Vijay | last post by:
Prep Courses for International Certifications, CSTE & CSQA & ISEB & ISTQB &Business Analyst & SOA Certifications in HYDERABAD. After receiving overwhelming response to our last 50+ batches, ...
9
by: John | last post by:
Hello all. I am a PHP newbie and am having an issue using the && in an if statement. here is the code: if ($_REQUEST == "1" && date("Y-m-d") < $rowWork) { die("<h1>The earlybird special has...
11
by: MahaCoder | last post by:
Given the following table: EMPL_ID | CO_ID | START | STOP -------------------------------------------- 12 U 01/06/1976 07/09/1980 12 U 03/18/1982 11/18/1988 12 ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
Oralloy
by: Oralloy | last post by:
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,...
0
jinu1996
by: jinu1996 | last post by:
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
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,...
0
isladogs
by: isladogs | last post by:
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.