DateToHTTPDate and DateFromHTTP functions (source). Enables conversion between OLE datetime (8byte VARIANT-DATE) and http datetime (plain text). Useful for If-Modified-Since and Last-Modified headers.
for 'How to convert DATE to a HTTP string date in ASP' articleWork with If-Modified-Since and Last-Modified in ASP.Net.Short support vb.Net functions to convert date from/to http string date and sample code to send files with 304 http code
How to convert http date to OLE(VB/VBS) date.ASP (VBS) function converting http string date (like Fri, 22 Oct 1999 12:08:38 GMT) to DATE data type.
Copyright and use this code
The source code on this page and other samples at http://www.motobit.com/tips/ are a free code, you can use it as you want: copy it, modify it, use it in your products, ...
If you use this code, please:
1. Leave the author note in the source.
2. Link this sample from you page.
<A Href="http://www.motobit.com/tips/detpg_DateToHTTPDate/" Title="ASP (VBS) function converting DATE data type to http string date (like Fri, 22 Oct 1999 12:08:38 GMT)." >How to convert DATE to a HTTP string date in ASP</A>
© 1996 - 2014 Antonin Foller, Motobit Software | About, Contacts | (Find us on Google+)