# Php date and time function

**URL:** <https://forum.kirupa.com/t/php-date-and-time-function/286489>\
**Category:** programming\
**Created:** [April 16, 2009, 8:25am UTC](https://forum.kirupa.com/t/php-date-and-time-function/286489 "2009-04-16T08:25:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stedem](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@stedem](https://forum.kirupa.com/u/stedem)\
**Post date:** [April 16, 2009, 8:25am UTC](https://forum.kirupa.com/t/php-date-and-time-function/286489/1 "2009-04-16T08:25:01Z")

</div>

Hello,

I’m busy with my new website and want to do some things with “date”.

I would like to create a function in my site that shows/hides a product based on date.

For example in the field “show” i put the date 2009-04-19 and from that date the product will be shown. If i put in the “hide” field the value 2009-04-21 the product must be hidden from the 21st.

Is this possible in a easy way?

Greetz
