Answers for "cdn moment.js"

11

momentjs cdn

<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.25.1/moment.min.js"></script>
Posted by: Guest on May-02-2020
3

moment

moment("20111031", "YYYYMMDD").fromNow(); // há 9 anos
moment("20120620", "YYYYMMDD").fromNow(); // há 8 anos
moment().startOf('day').fromNow();        // há 13 horas
moment().endOf('day').fromNow();          // em 11 horas
moment().startOf('hour').fromNow();       // há 10 minutos
Posted by: Guest on May-28-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language