formatFuzzyDate() public static method

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
return string
示例#1
0
        ?>
 <?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;
示例#2
0
	</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">
示例#3
0
 public function getDateText()
 {
     return Helper::formatFuzzyDate($this->date);
 }
示例#4
0
<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 {