Advanced date parsing

Angular.js does not implement angular for locale and simplicity reason
so this is a fix to print correct date format