Move into app/

This commit is contained in:
2025-10-07 13:52:57 +07:00
parent 6dd7d33661
commit 36f5508d48
95 changed files with 28 additions and 19 deletions
+11
View File
@@ -0,0 +1,11 @@
import dayjs from 'dayjs'
import localizedFormat from 'dayjs/plugin/localizedFormat'
import 'dayjs/locale/th'
import 'dayjs/locale/en'
dayjs.extend(localizedFormat)
export const useFormatDate = (date: string) => {
const localizedDayjs = dayjs(date).locale('en')
return localizedDayjs.format('D MMMM YYYY - HH:mm')
}