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.

Typing the date doesn't follow set format

See original GitHub issue

If I have format set for example to “d.M.yyyy”, like this:

<datepicker format="d.M.yyyy" :typeable="true">

And then I select 1st of June 2017, it shows up correctly as “1.6.2017”, but then if I only change the year by manually typing “1.6.2018”, it interprets the changed date as 6th of January 2018.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:8
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
brurubiocommented, Jun 15, 2018

I found a solution to the Date.parse problem. I don’t know if it’s the best approach, but it solved my problem, and I hope it can help someone else. I created a pullRequest #536. @charliekassel

2reactions
brigmanbrcommented, May 18, 2018

I have the same problem.

<datepicker :language="ptBR" format="dd/MM/yyyy" v-mask="'##/##/####'" :typeable="true" class="form-control" v-model="dt_ini" @keyup.enter="doFilter" ></datepicker>

If I type 15/06/2018 then press TAB, my input is cleaned.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Excel Dates That Won't Change Format - Contextures
How to fix Excel dates that will not change format. Fix dates that end up in the wrong order when sorted. Use built-in...
Read more >
Excel Dates Won't Change Format - Contextures Blog
To format the dates, select them, and use the quick Number formats on the Excel Ribbon, or click the dialog launcher, to see...
Read more >
Date Formatting Won't Change - Microsoft Tech Community
I have an excel column that includes dates currently formatted as MM/DD/YYYY. I want it formatted as YYYY/MM/DD. When I go to format...
Read more >
6 Ways to Fix Dates Formatted as Text in Excel
6 ways to fix dates formatted ast text in Excel, plus a bonus technique using Power Query to fix various formats.
Read more >
How to change Excel date format and create custom formatting
If you want to set a different default date and/or time formats on your computer, for example change the USA date format to...
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