export function formatBlogDate(value: string) {
  if (!value) {
    return "";
  }

  try {
    return new Intl.DateTimeFormat("hr-HR", {
      day: "numeric",
      month: "numeric",
      year: "numeric",
    }).format(new Date(value));
  } catch {
    return value;
  }
}
