feat: add start_date and end_date fields to advertisements with transformation and display in forms

This commit is contained in:
Ardeman
2025-03-14 12:47:43 +08:00
parent 273add293e
commit f04ad1a8f8
6 changed files with 150 additions and 2 deletions
+1
View File
@@ -2,6 +2,7 @@ export const formatNumberWithPeriods = (number: number) => {
return new Intl.NumberFormat('id-ID').format(number)
}
export const formatDate = (isoDate: string): string => {
if (!isoDate) return '-'
const date = new Date(isoDate)
return new Intl.DateTimeFormat('id-ID', {
day: '2-digit',