task-fixdatetime
This commit is contained in:
@@ -6,12 +6,10 @@ export function formatCurrency(value: number) {
|
||||
}).format(value);
|
||||
}
|
||||
|
||||
import { formatDate as formatGlobalDate } from '@/lib/date-format';
|
||||
|
||||
export function formatDate(value: string) {
|
||||
return new Intl.DateTimeFormat('th-TH', {
|
||||
day: '2-digit',
|
||||
month: 'short',
|
||||
year: 'numeric'
|
||||
}).format(new Date(value));
|
||||
return formatGlobalDate(value);
|
||||
}
|
||||
|
||||
export function formatPercent(value: number) {
|
||||
|
||||
Reference in New Issue
Block a user