jquery get info from time string

jquery get info from time string


Hello,

This is the date output in console.log()
  1. Date {Sat Mar 23 2013 09:00:00 GMT-0400 (AST)}
Right now I'm using the normal getHours(), getMinutes() method and for me it is working fine.

If someone in a different timezone checks my console.log() output it will be the same string but it gives a different time.




Question: Is there a possibility to get the time info as given and ignore the "GMT-0400 (AST)" part

In this way the time shown on my website (from this example) will be 09:00 all over the world.


Thanks