Skip to content

Instantly share code, notes, and snippets.

@cfurrow
Created November 14, 2010 01:30
Show Gist options
  • Save cfurrow/675813 to your computer and use it in GitHub Desktop.
Save cfurrow/675813 to your computer and use it in GitHub Desktop.
// app.js
// .. other requires
require('./public/javascript/date.format');
// index.haml
%h1= client.name
.modified= client.modified_on.format("m/dd/yy h:MM TT")
//output
<h1>Client #1</h1>
<div class='modified'>11/13/10 8:30 PM</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment