User475983607 posted
micinie2020, the shared code is incomplete. The View, Action, and decimalToTime() function are missing, The community cannot review the most important parts of the code.
Can you share the input values? If you are not sure, set a break point and single step over your JavaScript code to find the input values. You can also view the HTML source. Is decimaltoTime() a custom function you wrote? Have you
properly tested the function?
It seems you are not using standard debugging tools because you have not drilled down far enough into the code. You shared source of the error but did not take the time to investigate the source of the data to make sure the data is a valid date.