I have the following table:
CREATE TABLE `document` (
`id` INT(10) NOT NULL AUTO_INCREMENT,
`systemReceivedTime` BIGINT(20) NOT NULL DEFAULT '0',
`finishTime` BIGINT(20) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
)
a row:
systemReceivedTime 1360747818002 // > 2013-02-13 11:30:18
finishTime 1362995961805 // > 2013-03-11 11:59:22
what i need is a method to calculate the number of workdays between two dates.
to display the date properly use the following select:
from_unixtime(systemreceivedtime/1000) ,
if(finishtime=0,null,from_unixtime(finishtime/1000))