A
Andrew Poulos
I'm using JavaScript in ASP to read an MS Access database. I'm querying
a field of a date/time data type. Here's the code that gets the field
value from the record set:
var dVal = rs.fields("UserDate").value;
The field can either have a date or be empty (null). If the field has a
date then there's no problem but if its empty then I'm unable to test
for it. I've tried a variety of tests including:
if (dVal == null)
if (!dVal)
if (typeof dVal == "Date")
if (typeof dVal == "date")
....
Is there a way to test if no date has been returned?
Andrew Poulos
a field of a date/time data type. Here's the code that gets the field
value from the record set:
var dVal = rs.fields("UserDate").value;
The field can either have a date or be empty (null). If the field has a
date then there's no problem but if its empty then I'm unable to test
for it. I've tried a variety of tests including:
if (dVal == null)
if (!dVal)
if (typeof dVal == "Date")
if (typeof dVal == "date")
....
Is there a way to test if no date has been returned?
Andrew Poulos