ASP - List files between given dates

  • Hari Narayanan
  • Graduate
  • Graduate
  • Hari Narayanan
  • Posts: 103

Post 3+ Months Ago

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.
  • Hari Narayanan
  • Graduate
  • Graduate
  • Hari Narayanan
  • Posts: 103

Post 3+ Months Ago

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 135 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.