Using array to build a Date object no matter of the browser (iPhone fix)
The solution has been taken from: http://stackoverflow.com/questions/5324178/javascript-date-parsing-on-iphone