AMD-compatible JavaScript date printer.