문제

I'm trying to migrate data from one application to another via SQL imports, and I'm at the final step of grabbing the date of entry. The difficulty I'm experiencing is that the date is in some odd format.

Examples are as follows... 1360938606 1360938612 1360938607 1360938607

In the new application, the date format is as follows: 0000-00-00 00:00:00

Is there a way that I can convert the original format to this new format in Excel?

Thanks!

도움이 되었습니까?

해결책

You can also try this :

$newdateformat = date('Y-m-d H:i:s', $oldtimestamp);

refer to http://php.net/manual/en/function.date.php

다른 팁

Looks like unix timestamp ad Mark mentioned... which is actually pretty standard. You can use strftime from php to convert it to the string format you want:

$time = strftime('%F %T', (int) $thevalue)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top