WebSpeed and moment.js, working example.

Cecil

19+ years progress programming and still learning.
Hi Guys

I came across moment.js JavaScript and I want to share how useful it was for me, and easy to implement.

Please find attached a standalone WebSpeed html page which demonstrates between SpeedScript and moment.js with a bit of jQuery thrown in.

I had the situation where I wanted to display dates & times from the database and have them presented in a nice human readable format. I then came across moment.js JavaScript and I was very quickly and easily implement it's functionality into my WebSpeed Scripted Web Page. I'm using jQuery (and who isn't days) to parse the html table and swap out the table's cell values with the formatted value.
 

Attachments

  • DateTime.zip
    1.4 KB · Views: 20
Top