---
title: "Date Time - Product Common Guides"
description: "This set of Smart Tags returns information about the current date time respecting the timezone selected in the site’s global configuration. {date}"
url: "https://www.tassos.gr/docs/common/features/smart-tags/date-time"
date: "2026-05-01T15:49:32+00:00"
language: "en-GB"
---

[ Home ](https://www.tassos.gr/index.php?option=com_content&view=category&layout=blog&id=24&Itemid=1088) / [ Product Common Guides ](https://www.tassos.gr/index.php?option=com_content&view=category&id=89) / [ Features ](https://www.tassos.gr/index.php?option=com_content&view=category&id=96) / [ Smart Tags ](https://www.tassos.gr/index.php?option=com_content&view=category&id=107)

#  Date Time

This set of Smart Tags returns information about the current date time respecting the timezone selected in the site’s global configuration.

### [{date}](#date)

Returns the current date time in format Y-m-d H:i:s. Eg: 2023-09-12 11:22:52.

To output the date with a custom format, pass the --format=FORMAT\_OPTIONS option. [List of available format characters](https://www.php.net/manual/en/datetime.format.php).

- To output a date as **09/12/2023** use, {date --format=m/d/Y}
- To output a date as **Tue, 12 Sep 2023**, use {date --format=D, d M Y}

### [{day}](#day)

Returns the numeric representation of a day of the month without leading zeros. Eg: 22.

Use the {date} Smart Tag to output the current date of the week in another format. Examples:

- Day of the month, two digits with leading zeros such as 01 or 31. {date --format=d}
- A textual representation of a day, three letters, such as Mon or Sun. {date --format=D}
- A full textual representation of the day of the week, such as Sunday or Monday. {date --format=l} (lowercase 'L')
- ISO 8601 numeric representation of the day of the week, such as 1 (for Monday) through 7 (for Sunday). {date --format=N}
- Numeric representation of the day of the week, 0 (for Sunday) through 6 (for Saturday). {date --format=w}
- The day of the year (starting from 0) 0 through 365. {date --format=z}

### [{month}](#month)

Returns the numeric representation of the month without leading zeros. Eg: 5.

Use the {date} Smart Tag to output the current month in another format. Examples:

- A full textual representation of a month, such as January or March: {date --format=F}
- Numeric representation of a month, with leading zeros such as 01 or 12. {date --format=m}
- A short textual representation of a month, three letters, such as Jan or Dec. {date --format=M}

### [{year}](#year)

Returns a 4-digit numeric representation of the year. Eg: 2023. To output a 2-digit year, use {date --format=y}

### [{time}](#time)

Returns a 24-hour format of an hour with leading zeros. Eg: 20:30.

 Last updated on Jun 20th 2025 09:06

## Schema

```json
{
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": [
        {
            "@type": "ListItem",
            "position": 1,
            "name": "Home",
            "item": "https://www.tassos.gr"
        },
        {
            "@type": "ListItem",
            "position": 2,
            "name": "Home",
            "item": "https://www.tassos.gr/docs"
        },
        {
            "@type": "ListItem",
            "position": 3,
            "name": "Product Common Guides",
            "item": "https://www.tassos.gr/docs/common"
        },
        {
            "@type": "ListItem",
            "position": 4,
            "name": "Features",
            "item": "https://www.tassos.gr/docs/common/features"
        },
        {
            "@type": "ListItem",
            "position": 5,
            "name": "Smart Tags",
            "item": "https://www.tassos.gr/docs/common/features/smart-tags"
        },
        {
            "@type": "ListItem",
            "position": 6,
            "name": "Date Time",
            "item": "https://www.tassos.gr/docs/common/features/smart-tags/date-time"
        }
    ]
}
```

```json
{
    "@context": "https://schema.org",
    "@type": "Article",
    "mainEntityOfPage": {
        "@type": "WebPage",
        "@id": "https://www.tassos.gr/docs/common/features/smart-tags/date-time"
    },
    "headline": "Date Time",
    "image": {
        "@type": "ImageObject",
        "url": "https://www.tassos.gr/"
    },
    "publisher": {
        "@type": "Organization",
        "name": "Tassos",
        "logo": {
            "@type": "ImageObject",
            "url": "https://www.tassos.gr/https://www.tassos.gr/media/brand/logo-text.png"
        }
    },
    "author": {
        "@type": "Person",
        "name": "Tassos Marinos",
        "url": "https://www.tassos.gr/docs/common/features/smart-tags/date-time"
    },
    "datePublished": "2025-05-14T14:01:02+03:00",
    "dateCreated": "2025-05-14T14:01:02+03:00",
    "dateModified": "2025-06-20T09:00:45+03:00"
}
```
