question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom Date Time Format - stripping leading zero from day value

See original GitHub issue
  • VSCode Version: 1.33.1 (User Setup)
  • OS Version: Win 10 Enterprise
  • REST Client Version: 0.21.3

Background

@connelhooley recently made a change to resolve #325 which allows us to use a custom date format as well as specifying a dynamic date in PR #361, although, again this is specific to just our use case, I noticed that when doing "{{$datetime 'YYYY-MM-DD' 5 d}}" today (30th May, 5 days from now being 4th June), it isn’t including the leading 0 for the day, we are getting the following response from our internal API

"message": "Supplied value could not be accepted. Supplied date '2019-06-4' is invalid, ensure to supply in yyyy-MM-dd format."

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
Huachaocommented, Jul 29, 2019

@connelhooley it should be released in this week 😄

2reactions
connelhooleycommented, Jul 29, 2019

Is there any update on when this will be released? I’d rather not get our entire team to download the zip and manually update the extension if possible.

Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Keep Leading Zero in Excel Date Format (9 Quick Ways)
3. Utilizing Custom Number Format to Keep Leading Zero in Excel Date Format · Initially, copy and paste the database of the D...
Read more >
Remove leading zeros from time format - Stack Overflow
I would like to remove the leading zeros but always keeping the the last four character eg m:ss even if m would be...
Read more >
Leading zeros in Excel: how to add, remove and hide - Ablebits
For this, select the cells where you want to hide zeros, click Ctrl+1 to open the Format Cells dialog, select Custom under Category,...
Read more >
9 Ways To Add Leading Zeros In Excel
The TEXT function will let you apply a custom formatting to any number data already in your spreadsheet. = TEXT ( Value, Format)....
Read more >
Custom Date Formats - Tableau Help
Supported date format symbols ; dd, Display the day as a number with a leading zero (01-31). ; ddd, Display the day as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found