---
title: "Discussion on \"Using PHP to find out a date, a period of time or the difference as text\" | Hashnode"
description: "Discussion on \"Using PHP to find out a date, a period of time or the difference as text\". In this post you will learn how to output times with PHP and also WordPress. This includes the current date; dates in the future, or in the past. Also how to find out days within a time period. Have fun!\ntime()\nWith time() the current timestamp can b..."
url: "https://hashnode.com/posts/using-php-to-find-out-a-date-a-period-of-time-or-the-difference-as-text/620be09d7cf10d2765e2832d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Using PHP to find out a date, a period of time or the difference as text](https://en.pixelbart.de/using-php-to-find-out-a-date-a-period-of-time-or-the-difference-as-text?utm_source=hashnode&utm_medium=feed)

In this post you will learn how to output times with PHP and also WordPress. This includes the current date; dates in the future, or in the past. Also how to find out days within a time period. Have fun! time() With time() the current timestamp can b...

Feb 15, 2022 · 3 min read · en.pixelbart.de  
Updated May 11, 2022  
Read the article

-   [#php](https://hashnode.com/tag/php)
-   [#wordpress](https://hashnode.com/tag/wordpress)

## Written by

[Kevin Pliester](https://hashnode.com/@pixelbart)

@pixelbart · Germany

  
[View profile](https://hashnode.com/@pixelbart)

Webdev

Speaks many languages, but currently only uses PHP, JavaScript and WordPress (I consider it its own language, since it's a big sandbox).

## Responses 1

Markdown supported · ⌘↵ to post

[Kevin Pliester](https://hashnode.com/@pixelbart)

[Feb 15, 2022](https://hashnode.com/posts/using-php-to-find-out-a-date-a-period-of-time-or-the-difference-as-text/620be09d7cf10d2765e2832d/comment/620be0dc25673f2740ee8743)

Well, that's a short post. Hopefully it's as useful to you as it is to me.

What do you think?
