I get a date in this format:
2015-02-19 00:00:00
Now I need to format this date to
19-02-2015
I tried:
sc.documents.datestring = $filter("date")('2015-02-19 00:00:00', 'dd-MM-yyyy');
But that didn't work, anyone have an idea of how to do this?