Try this
select (date - cast('2002-01-01' as date));
Attachments
Library
Quick Reference
Archives
Sample Index
2002 Indexes