JSFiddle - React, Tailwind, and code Playground

JavaScript

var str="1.03:45:00";
var value = str.replace(".", "day ");
alert(value);