mirror of
https://github.com/Pumpkin-MC/Pumpkin-Website.git
synced 2025-02-12 02:21:16 +00:00
19 lines
367 B
Vue
19 lines
367 B
Vue
<script setup>
|
|
import { computed, getCurrentInstance } from 'vue';
|
|
|
|
const props = defineProps({
|
|
d: {
|
|
type: Date,
|
|
required: true
|
|
}
|
|
});
|
|
|
|
const formattedDateTime = computed(() => {
|
|
return getCurrentInstance().appContext.config.globalProperties.$dateTimeFormatter.format(props.d);
|
|
});
|
|
</script>
|
|
|
|
|
|
<template>
|
|
{{ formattedDateTime }}
|
|
</template> |