BrollyLSSJ
New Member
My date is a string in this format:\[code\]Dec 31, 1969 7:00:00 PM\[/code\]I want to show a shorter date on the view so i do this with angular\[code\]<input ui-date="{ dateFormat: 'yy-mm-dd' }" ui-date-format ng-model="project.date" />\[/code\]But then project.date is no longer the old format but the unix one (I think) :\[code\]1969-12-09T05:00:00.000Z\[/code\]But i want to ouptput it in the previous format :\[code\]Dec 31, 1969 7:00:00 PM\[/code\]How could i do this?