My company is using date-fns and I'm trying to set a variable equal to the current date + time. We must use date-fns, and the format is specified to be 'YYYY-MM-DDThh:mm:ss.dddddd'.
How can I do this? I tried simply format(new Date(), 'YYYY-MM-DDThh:mm:ss:dddddd'), but that was not working as expected.
(Also what is the 'T' for? Just to specify that a time measurement will follow? And what are the d's?)
Thanks!!