Prace na sprave letu
This commit is contained in:
@@ -3,3 +3,10 @@ export const minutesToHumanReadable = (totalMinutes) => {
|
||||
const minutes = totalMinutes % 60;
|
||||
return `${hours}h ${minutes}min`
|
||||
}
|
||||
|
||||
export const formatDate = (date) => {
|
||||
if (typeof date === 'string') {
|
||||
date = new Date(date);
|
||||
}
|
||||
return date.getDate()+". "+date.getMonth()+". "+date.getFullYear();
|
||||
}
|
||||
Reference in New Issue
Block a user