Skip to content

Commit

Permalink
feat(date): add shortDate date format
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Sep 14, 2023
1 parent 0dc5b93 commit a42c27b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/vuetify/src/labs/date/adapters/vuetify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,9 @@ function format (value: Date, formatString: string, locale: string): string {
case 'dayOfMonth':
options = { day: 'numeric' }
break
case 'shortDate':
options = { year: 'numeric' }
break
default:
options = { timeZone: 'UTC', timeZoneName: 'short' }
}
Expand Down

0 comments on commit a42c27b

Please sign in to comment.