$ 0 0 look up the offset function in javascript.. or.. you could use a 3rd party lib like moment.js hope this helps