Default for format-date helper?
See original GitHub issueIs there a way to specify the default format for format-date?
For example, whenever I do:
{{format-date model.invoiceDate }}
I’d like it to do this by default:
{{format-date model.invoiceDate month='2-digit' day='2-digit' year='numeric'}}
A step further, is there a way to specify a default format for a specific locale?
Thanks!
Issue Analytics
- State:
- Created 8 years ago
- Comments:11 (8 by maintainers)
Top Results From Across the Web
FormatDate - IBM
FormatDate formats a date value according to a formatter defined with the NewDateFormatter function. This function is valid in TM1® TurboIntegrator processes ...
Read more >Handlebar expressions for date and time format codes
Category Token Result
Month M 7
Month Mo 7th
Month MM 07
Read more >helper-dateformat - npm
Template helper for adding formatted dates using node-dateformat. Works with Handlebars, Lo-Dash, underscore, or any template engine that ...
Read more >Format a date from inside a Handlebars Template in Meteor
registerHelper ("formatDate", function(datetime, format) { // Use UI.registerHelper.. UI.registerHelper("formatDate", function(datetime, format) ...
Read more >formatDate - Angular
If not specified, uses host system settings. Optional. Default is undefined . Returns. string : The formatted date string. See alsolink.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @drewclauson. This was more a question for someone like @jasonmit. Didn’t want to open another issue, so I piggy-backed onto yours.
One more question, if I wanted to display the date in YYYY-MM-DD format for en-US, how would I do that?
Thanks!