Skip to content
pontikis.net
  • Blog
  • WordPress
  • Labs
  • About
  • Toggle website search
Search this website
Menu Close

datetime

  1. Home>
  2. Blog>
  3. datetime>
Read more about the article How to Convert Date or Time to any Timezone and Dateformat with PHP
Credits

How to Convert Date or Time to any Timezone and Dateformat with PHP

  • Post author:Christos Pontikis
  • Post published:November 4, 2013
  • Post category:Web Development
  • Reading time:4 mins read

Date manipulation is a common and extremely useful development task. It was never easy with PHP, until PHP5 and DateTime class. There are many cases you need to convert dates.…

Continue ReadingHow to Convert Date or Time to any Timezone and Dateformat with PHP
Read more about the article Check if a String represents a Valid Timezone with PHP
Credits

Check if a String represents a Valid Timezone with PHP

  • Post author:Christos Pontikis
  • Post published:November 4, 2013
  • Post category:Web Development
  • Reading time:1 mins read

Sometimes you want to check if a string represents a valid timezone. Using PHP versions greater than 5.2, timezone_identifiers_list() could be a solution. Take a look in the following function:…

Continue ReadingCheck if a String represents a Valid Timezone with PHP
Read more about the article Check if a string represents a valid Date or Time with PHP
Credits

Check if a string represents a valid Date or Time with PHP

  • Post author:Christos Pontikis
  • Post published:September 8, 2013
  • Post category:Web Development
  • Reading time:4 mins read

PHP DateTime class, available with PHP versions greater than 5.2 is very powerful. As an example, it ts very easy to check if a string represents a valid date or…

Continue ReadingCheck if a string represents a valid Date or Time with PHP
Read more about the article How to Get Current Datetime (NOW) with PHP
Credits

How to Get Current Datetime (NOW) with PHP

  • Post author:Christos Pontikis
  • Post published:August 30, 2013
  • Post category:Web Development
  • Reading time:4 mins read

To get current datetime (now) with PHP you can use date with any PHP version, or better datetime class with PHP >= 5.2 Various date format expressions are available here.…

Continue ReadingHow to Get Current Datetime (NOW) with PHP

Categories

Archives

NewsLetter

Click here to subscribe to our free email newsletter.
Unsubscribe anytime with a click.

LIKE OUR PAGE!


Say Hello to Gutenberg with my new Free WordPress Plugin Boilerplate for Developers!

Star it on Github!


  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Contact
  • Privacy
  • Terms
© Christos Pontikis 2013 - 2025
Close Menu