Question : convert serial number to date from MYSQL

Hi. I am getting date info formatted like this from a mysql backup:
1256092787

How can I convert this to a normal date and time format in Excel?

Answer : convert serial number to date from MYSQL

In that case, what you can do is this:

1. Import your mysql date/time values into excel (say in column A).  These will be formatted as number.

2. Put the following formula in column B.  In cell B2, for example, you could put :
=DATE(1970,1,1)+A1/(60*60*24)

3. Copy the formula down depending on the number of rows of data you have.

4. Format column B using the Custom format : d-mmm-yyyy hh:mm:ss AM/PM
Random Solutions  
 
programming4us programming4us