Here's an example on how to format a date that looks like this:
2011-02-16 | 14:58
var myDate = new Date().format('yyyy-mm-dd | HH:MM');
Really smooth and easy.
You can find a lot of custom date format examples + a reference in Steven's blog post.