generate string representation of a fuzzy date (fuzzy dates are strings of the format
yyyy-mm-dd, where mm and dd can be 00 to indicate not being set).
public static formatFuzzyDate ( string $value ) : string | ||
$value | string | |
Résultat | string |
?> <?php echo $medication->option ? "({$medication->option->name})" : ''; ?> <?php echo $medication->frequency->name; ?> </td> </tr> <tr> <th>Date</th> <td> <?php echo Helper::formatFuzzyDate($medication->start_date) . ' - '; if (!$current) { echo Helper::formatFuzzyDate($medication->end_date); if ($medication->stop_reason) { echo " (reason for stopping: {$medication->stop_reason->name})"; } } ?> </td> </tr> <?php if ($this->checkAccess('OprnEditMedication')) { ?> <tr> <th>Actions</th> <td> <a href="#" class="medication_edit" data-id="<?php echo $medication->id;
</header> <div class="js-toggle-body"> <table class="plain patient-data"> <thead> <tr> <th>Date</th> <th>Status</th> </tr> </thead> <tbody> <?php $info = $this->patient->getOPHInfo(); ?> <tr> <td><?php echo Helper::formatFuzzyDate($info->cvi_status_date); ?> </td> <td><?php echo $info->cvi_status->name; ?> </td> </tr> </tbody> </table> <?php if ($this->checkAccess('OprnEditOphInfo')) { ?> <div class="box-actions">
public function getDateText() { return Helper::formatFuzzyDate($this->date); }
<table class="plain patient-data" > <thead> <tr> <th>Date</th> <th>Status</th> <th>Actions</th> </tr> </thead> <tbody> <?php foreach ($rows as $info) { ?> <tr> <td><?php echo Helper::formatFuzzyDate($info['date']); ?> </td> <td><?php echo $info['status']; ?> </td> <td><?php if (isset($info['event_url'])) { ?> <a href="<?php echo $info['event_url']; ?> ">View</a> <?php } else {