UNIX Timestamp
See original GitHub issueI can’t find a way to make it work with UNIX timestamps. Is it possible or did you cut off this feature?
Moment.js states you can do moment.unix(value).format("MM/DD/YYYY")
but how can I do this with your filter?
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Unix Timestamp
The unix time stamp is a way to track time as a running total of seconds. This count starts at the Unix Epoch...
Read more >Epoch Converter - Unix Timestamp Converter
Easy epoch/Unix timestamp converter for computer programmers. Includes epoch explanation and conversion syntax in various programming languages.
Read more >Unix time
Unix time is a date and time representation widely used in computing. It measures time by the number of seconds that have elapsed...
Read more >Unix Timestamp - Epoch Converter - TimeStamp Converter
Convert epoch to human-readable date and vice versa. Enter a Timestamp Supports Unix timestamps in seconds, milliseconds, microseconds and nanoseconds. Convert ...
Read more >Unix Timestamp Converter / Epoch Converter
An intuitive and powerful tool for converting Unix timestamps and human-readable times.
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
I just ran into this same issue and did some digging and found a nice simple fix. As you mentioned,
moment
itself as a library supports unix timestamps withmoment.unix()
. I installed moment, imported it, and added a filter into my component to do Unix timestamps for me:Vue component
Usage in template - no parenthesis required
This will take Unix epoch (timestamp) as input and give you back
MM-DD-YYYY
. I prefer filters to methods. If you haven’t written your own filters before, here are the docs@Joeper214 install moment for the filter not vue-moment. npm install --save moment