Created
June 8, 2020 00:05
-
-
Save monbang/852bb63d3d82a1648d759ceea5113466 to your computer and use it in GitHub Desktop.
vue dating
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vue dating | |
========================= | |
1. picker: vuejs-datepicker | |
2. from laravel (j.n.Y) to js date(d.M.yyyy) with date-fns | |
=> this.start = parse(this.currentObj.start_date, 'd.M.yyyy', new Date()); | |
3. from js date to laravel (j.n.Y) date | |
=> this.form.start_date = format(this.start, 'd.M.yyyy'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment