Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I read the date of file ?

Status
Not open for further replies.

mac4511

Technical User
Apr 26, 2001
14
GB
Hi there I need to read the date of text / csv file dynamically to place it on a web page which uses databinding. It has to work in IE 4 / 5.0 / 5.5. not NS.

I can do the data binding part from the csv file OK, but I need to add the last modified date of that csv file which was used to generate the page.

Does anyone have any ideas how I could do this. I dont think that the databinding feature in IE4 or IE5 etc allows for this, so maybe its just a javascript thing I need to do as an extra. I guess even VBscript would do if theres a way but I prefer to keep away from that if possible.

Thanks in advance
mac

 
I think you cannot do that with Javascript. (maybe somehow with DHTML, I dont know)

But you can do it in ASP with:
Request.ServerVariabiles("HTTP_DATE") and
Request.ServerVariabiles("HTTP_LAST_MODIFIED")

Anyway the date you will need is ALWAYS sent to the browser via HTTP header entries like:

Date: {the GMT date of creation}
Last modified: {the GMT date of the last modifications}

(If you want to see that, download the Web server I have made myself from my site below)

Hope this helps, s-)

Blessed is he who in the name of justice and good will, shepards the week through the valley of darknees...
 
Hi I forgot to mention that it has to work locally - eg: on a laptop, not always web connected, but the files would be updated via an overnight upload. hence the need to read the latest date.

Any other ideas appreciated.

Thanks

Mac
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top