diff --git a/components/iso-card.vue b/components/iso-card.vue
index 8d5cf76..5f7a912 100644
--- a/components/iso-card.vue
+++ b/components/iso-card.vue
@@ -11,6 +11,12 @@
class="relative object-cover h-[180px]"
/>
+
+ {{ dateFromLink || '-' }}
+
{
showDetailsRef.value = true
@@ -156,4 +163,26 @@ const getDetailEntry = (entry: string) => {
}
return props.isoData[entry]
}
+
+if (props.isoData?.image) {
+ const datePattern = /(\d{6})/
+ const match = props.isoData.image.match(datePattern)
+
+ if (match) {
+ const dateStr = match[1]
+ const year = parseInt(dateStr.slice(0, 2), 10)
+ const month = parseInt(dateStr.slice(2, 4), 10) - 1
+ const day = parseInt(dateStr.slice(4, 6), 10)
+
+ const dateObj = new Date(2000 + year, month, day)
+
+ const options: Intl.DateTimeFormatOptions = {
+ year: 'numeric',
+ month: 'long',
+ day: 'numeric',
+ }
+
+ dateFromLink.value = dateObj.toLocaleDateString(undefined, options)
+ }
+}