dbWriter Date From Epoch - ASP code
Epoch time is
defined as the time in seconds from midnight January 1, 1970
until the date and time requested.
Find the date from an Epoch number:
| <% Function DatefromEpoch(intTimeStamp)
IF NOT isnumeric(intTimeStamp) or isnull(intTimeStamp) THEN EXIT
Function
DatefromEpoch = DateAdd("s", intTimeStamp, "01/01/1970
00:00:00")
End Function
%> |
|