Access and use DateJS library in JQuery Mobile App

Access and use DateJS library in JQuery Mobile App

BY 23 Jul 2013 Web Application Development

I read somewhere that DateJS available from http://code.google.com/p/datejs/wiki/APIDocumentation is part of JQuery Mobile.

This library is designed to make working with dates very easy and convenient. I created a web app project from the JQuery Mobile template but have problems accessing and using the date functions provided by DateJS.

For example, the following code from the library does not run:

var myDate = new Date();

myDate.clearTime(); // TypeError: 'undefined' is not a function

Does anyone know how to make this work?

Written by