45 days prior to date

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

Just joined this group.

Been assigned a project to list entries
that have been entered within the last
45 days.

My database has the date column with the
date format as   YYYYMMDD (ex: 20070423)

Been trying to write code for an SQL query
to list entries that are less than 45 days
from the date that is in the column

I have used the  dateadd() function but does the
date have to be in the  format as  MMDDYYYY
(ex: 04232007) in order for the dateadd() 
function to work properly.

Any help would be appreciated


Thanks
Ken


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux