Skip to content

Instantly share code, notes, and snippets.

@mhevery
Created October 13, 2010 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhevery/624430 to your computer and use it in GitHub Desktop.
Save mhevery/624430 to your computer and use it in GitHub Desktop.
<!DOCTYPE HTML>
<html xmlns:ng="http://angularjs.org">
<head>
<script type="text/javascript" src="http://angularjs.org/ng/js/angular-minified.js" ng:autobind>
</script>
<script type="text/javascript">
DATA = angular.fromJson('{date:"2010-10-13T10:20:30Z"}');
</script>
</head>
<body>
{{ $window.DATA.date | date }}
<hr/>
{{ $window.DATA.date | date:"YYYY/MM/DD" }}
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment