# give/4.16.8.1/src/Campaigns/ListTable/Columns/DateColumn.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.8.1. 43 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.8.1/code/src/Campaigns/ListTable/Columns/DateColumn.php
- Raw: https://pluginprobe.com/plugins/give/4.16.8.1/raw/src/Campaigns/ListTable/Columns/DateColumn.php
- Modified: 2025-11-05T14:00:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.16.8.1/code/src/Campaigns/ListTable/Columns/DateColumn.php#L10-L20`.

```php
<?php

namespace Give\Campaigns\ListTable\Columns;

use Give\Campaigns\Models\Campaign;
use Give\Framework\ListTable\ModelColumn;
use Give\Framework\Support\Facades\DateTime\Temporal;

/**
 * @since 4.0.0
 */
class DateColumn extends ModelColumn
{
    protected $sortColumn = 'date';

    /**
     * @since 4.0.0
     */
    public static function getId(): string
    {
        return 'date';
    }

    /**
     * @since 4.0.0
     */
    public function getLabel(): string
    {
        return __('Date', 'give');
    }

    /**
     * @since 4.13.0 updated date format
     * @since 4.0.0
     *
     * @param Campaign $model
     */
    public function getCellValue($model, $locale = ''): string
    {
        return Temporal::getFormattedDateTimeUsingTimeZoneAndFormatSettings($model->createdAt);
    }
}

```
