#555·chancejs

chance.birthday() is giving a wrong time

Author: code-kimCreated Jun 8, 2022Updated Nov 30, 2023

When I log chance.birthday() to the console I get results like '1989-10-11 00:38:03.072'

Shouldn't the seconds be an integer? I'm trying to generate data to put into a database and mysql won't accept this format. In the Chance documentation, the example is in a different format.