Default dates

  • Thread starter Thread starter Steve S
  • Start date Start date
S

Steve S

There are various dates that are used as DEFAULT dates in the different
databases...... Is there a single method that will identify if the date
that comes back from a database is the DEFAULT date vs one that has been
entered ?

Example: DB2 uses 01/01/0001 as their default date.... FoxPro allowed a
blank date... which when retrieved by .NET comes back as 12/30/1899.....

Is there a method that we can use to determine if this is the default...
or a entered date ?
 
¤ There are various dates that are used as DEFAULT dates in the different
¤ databases...... Is there a single method that will identify if the date
¤ that comes back from a database is the DEFAULT date vs one that has been
¤ entered ?
¤
¤ Example: DB2 uses 01/01/0001 as their default date.... FoxPro allowed a
¤ blank date... which when retrieved by .NET comes back as 12/30/1899.....
¤
¤ Is there a method that we can use to determine if this is the default...
¤ or a entered date ?
¤

Probably not. You would probably need to write a stored procedure that returns an uninitialized date
parameter or calls a function, but it wouldn't be the same amongst all databases.


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
Back
Top