export const formatNumberWithPeriods = (number: number) => {
  return new Intl.NumberFormat('id-ID').format(number)
}
export const formatDate = (isoDate: string): string => {
  const date = new Date(isoDate)
  const day = date.getDate().toString().padStart(2, '0')
  const month = (date.getMonth() + 1).toString().padStart(2, '0') // Month is zero-based
  const year = date.getFullYear()

  return `${day}/${month}/${year}`
}
