Fichtelgard

Unix to Datastring

export function unixToDateString(unixString?: string) {
if (!unixString) return "n/a";
const parsedDate = parseInt(unixString);
const initDate = new Date(parsedDate);
const iDay = addZero(initDate.getDate());
const iMonth = addZero(initDate.getMonth() + 1);
const iYear = initDate.getFullYear();
return iDay + "." + iMonth + "." + iYear;
}