Changing date format on printed LBF

How can I change the date format on a LBF printed from the encounter tab?

On the form the DOS displays YYYY/MM/DD, I want it to display MM/DD/YYYY.
I would like the Rev. Date to also be in this format as well.
The DOB and date printed displays correctly though.

I changed the date format settings in the admin config to MM/DD/YYYY but this didn’t solve it.

See attached.

Thanks in advance!


images.

1 Like

With the help of AI I was able to figure it out.

Edit the printable.php file located “interface/forms/LBF/printable.php”

To change the date format for DOS edit the line:

echo genPatientHeaderFooter($pid, $DOS = $dateofservice);```

Change to:

echo genPatientHeaderFooter($pid, $DOS = date('m/d/Y', strtotime($dateofservice)));

For the Rev. date, I removed it by removing the line:

<p style='text-align:center' class='small'>
  <?php echo text(xl('Rev.') . ' ' . substr($grp_last_update, 0, 10)); ?>
</p>```