I have managed to print date and dollar amount CCK fields on a custom print.tpl.php template file (associated with the Printer, email and PDF versions module), but they are showing up in a different format than how I have them displayed in the CCK field itself.
The date is showing up like this: 2012-06-01 00:00:00
Instead of like this: June 1, 2012
And the dollar amount is showing up like this: 10000
Instead of like this: $10,000
Here are the code snippets:
<?php if(isset($node->field_invoice_due_date['und'][0]['value'])) {
print $node->field_invoice_due_date['und'][0]['value'];
}
?>
<?php if(isset($node->field_invoice_amount_to_bill['und'][0]['value'])) {
print $node->field_invoice_amount_to_bill['und'][0]['value'];
}
?>
Can anyone direct me on how I can change those two snippets to output their values in the formats I need?
Thanks!