unity-calendar/components/main/calendar/today/is.vue

36 lines
450 B
Vue

<script setup>
const date = new Date()
const dd = date.getDate()
const mm = date.getMonth() + 1
const yyyy = date.getFullYear()
</script>
<style>
.todayblock {
max-width: 75%;
}
.todayis, .todaydate{
font-size: 2.4rem;
}
</style>
<template>
<div class="todayblock">
<span class="todayis">Today is</span>
<span class="todaydate">{{ dd }} / {{ mm }} / {{ yyyy }}</span>
</div>
</template>