todate javascript from unix code example Example: javascript date convert to unix new Date('2012.08.10').getTime() / 1000