ASP - List files between given dates

  • Hari Narayanan
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Jun 07, 2005
  • Posts: 103
  • Status: Offline

Post December 18th, 2008, 4:57 am

Hi all,

How to search and list files whose creation date is between two given dates ?
Folder, From and To Dates would be input parameters to the function which may do the task.

The ASP (classic ASP and NOT ASP.NET) code for this is required and any help regarding this would be of great help ...

Thanks and Regards,
Hari.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post December 18th, 2008, 4:57 am

  • Hari Narayanan
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Jun 07, 2005
  • Posts: 103
  • Status: Offline

Post December 30th, 2008, 3:57 am

Hope this can do the trick (this is only the basic code to do the task).

Code: [ Select ]
 
If DateDiff("d",CDate(strFromDate),objFile.DateCreated) >= 0 and DateDiff("d",CDate(strToDate),objFile.DateCreated) <= 0 Then
    Response.Write objFile.name
End If
 
  1.  
  2. If DateDiff("d",CDate(strFromDate),objFile.DateCreated) >= 0 and DateDiff("d",CDate(strToDate),objFile.DateCreated) <= 0 Then
  3.     Response.Write objFile.name
  4. End If
  5.  

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 201 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.