Question : excel date to unix timestamp
Answered by : daniel-ferry
'VBA functions to convert between Excel and Unix date-times.
'These work on Windows and optionally the Mac:
Function UnixDateTime#(ExcelDateTime As Date, Optional Mac As Boolean) Dim OSOffset: OSOffset = IIf(Mac, 24107, 25569) UnixDateTime = (ExcelDateTime - OSOffset) * 86400
End Function
Function ExcelDateTime(UnixDateTime#, Optional Mac As Boolean) As Date Dim OSOffset: OSOffset = IIf(Mac, 24107, 25569) ExcelDateTime = (UnixDateTime / 86400) + OSOffset
End Function
Source : http://academy.excelhero.com/ | Last Update : Tue, 07 Apr 20
Question : excel unix timestamp to date
Answered by : jolly-jackal-m3gw0ryu4wc3
=(B5/86400)+DATE(1970,1,1)
Source : | Last Update : Thu, 22 Jul 21
Question : transform unix timestamp in date
Answered by : alessandro-maifredi
//Our date string. The format is Y-m-d H:i:s
$date = '2019-04-01 10:32:00';
//Convert it into a Unix timestamp using strtotime.
$timestamp = strtotime($date);
//Print it out.
echo $timestamp;
Source : https://thisinterestsme.com/php-convert-date-unix/ | Last Update : Fri, 28 May 21