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 http date to OLE(VB/VBS) date.' 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 use OnStartPage/OnEndPage methods in VBUsing OnStartPage/OnEndPage methods in VB
How to convert DATE to a HTTP string date in ASPASP (VBS) function converting DATE data type to http string date (like Fri, 22 Oct 1999 12:08:38 GMT).
Copyright and use this code
The source code on this page and other samples at https://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="https://www.motobit.com/tips/detpg_DateFromHTTP/" Title="ASP (VBS) function converting http string date (like Fri, 22 Oct 1999 12:08:38 GMT) to DATE data type." >How to convert http date to OLE(VB/VBS) date.</A>
© 1996 - 2019 Antonin Foller, Motobit Software | About, Contacts | (Find us on Google+)