File tree 1 file changed +27
-0
lines changed
1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 303
303
return item . length > 0 ;
304
304
} ) ;
305
305
306
+ switch ( dateFormatDefinition ) {
307
+ case 'medium' :
308
+ dateFormatDefinition = 'MMM d, y h:mm:ss a' ;
309
+ break ;
310
+ case 'short' :
311
+ dateFormatDefinition = 'M/d/yy h:mm a' ;
312
+ break ;
313
+ case 'fullDate' :
314
+ dateFormatDefinition = 'EEEE, MMMM d, y' ;
315
+ break ;
316
+ case 'longDate' :
317
+ dateFormatDefinition = 'MMMM d, y' ;
318
+ break ;
319
+ case 'mediumDate' :
320
+ dateFormatDefinition = 'MMM d, y' ;
321
+ break ;
322
+ case 'shortDate' :
323
+ dateFormatDefinition = 'M/d/yy' ;
324
+ break ;
325
+ case 'mediumTime' :
326
+ dateFormatDefinition = 'h:mm:ss a' ;
327
+ break ;
328
+ case 'shortTime' :
329
+ dateFormatDefinition = 'h:mm a' ;
330
+ break ;
331
+ }
332
+
306
333
formatDate = dateFormatDefinition
307
334
. match ( formattingTokens )
308
335
. filter ( function fromatDateFilter ( item ) {
You can’t perform that action at this time.
0 commit comments