php date() work-alike for nodejs