lse123
07-27-2007, 05:03 PM
Exist inverse for below:
<html>
<body>
<script type="text/vbscript">
d="April 22, 2001"
if IsDate(d) then
document.write(CDate(d))
end if
</script>
</body>
</html>
---------------------------------------------------
How I compare Dates below:
1) get from a form field in format mm/dd/yyyy
with
2) dates from Access db table field
or
2) dates from MySQL db table field ? I mean like
strSelection = "SELECT * FROM table WHERE date >" & datefromformfield
---------------------------------------------------
When I get dd , mm and yyyy from drop-down menus[separatelly] what functions I must use to constract a date string to be compared like WHERE STATEMENT above ?
<html>
<body>
<script type="text/vbscript">
d="April 22, 2001"
if IsDate(d) then
document.write(CDate(d))
end if
</script>
</body>
</html>
---------------------------------------------------
How I compare Dates below:
1) get from a form field in format mm/dd/yyyy
with
2) dates from Access db table field
or
2) dates from MySQL db table field ? I mean like
strSelection = "SELECT * FROM table WHERE date >" & datefromformfield
---------------------------------------------------
When I get dd , mm and yyyy from drop-down menus[separatelly] what functions I must use to constract a date string to be compared like WHERE STATEMENT above ?