|
|
8000XXXX Errors Alerts ASP.NET 2.0 Classic ASP 1.0 COM / ActiveX Components Forms General Topics Date/Time Routines Email Scripts & Info Files/Directories & FSO Databases General Concepts Search Engine Optimization (SEO)Search | ASP FAQ Tutorials :: Classic ASP 1.0 :: Date/Time Routines :: How do I determine the number of seconds since 1/1/1970? How do I determine the number of seconds since 1/1/1970?This is a pretty common one, as many systems use this measure for various date calculations. Here are examples in VBScript, JScript and Transact-SQL. Note that to get the number of milliseconds since 1/1/1970, you need to multiply these results by 1000. VBScript
Related Articles Can I get millisecond accuracy in ASP? Can I make VBScript format dates for me? Could I get a little help with dates? Given a date, how do I find the beginning and end of that week? Given two dates, how do I determine an age? How do I calculate dates, such as the first day of the month? How do I convert a DATEDIFF to days, hours, and minutes? How do I convert a timespan, in seconds, to HH:MM:SS? How do I convert local time to UTC (GMT) time? How do I count the number of business days between two dates? How do I delimit/format dates for database entry? How do I display time in military format? How do I implement a calendar / datepicker in ASP? How do I select time only from a DATETIME column? Why do I have problems inserting NOW() into a database? Why does JavaScript's document.lastModified() not work in ASP files? |