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

timezone

  1. Home>
  2. Blog>
  3. timezone>
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:2 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 min 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 Easily Create a Timezone List with PHP
Credits

Easily Create a Timezone List with PHP

  • Post author:Christos Pontikis
  • Post published:September 27, 2013
  • Post category:Web Development
  • Reading time:1 min read

Sometimes, you want to create a list of available time zones to prompt your user to select his/her time zone. Fortunately, PHP offers timezone_identifiers_list (PHP 5 >= 5.2.0). You can…

Continue ReadingEasily Create a Timezone List 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:2 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
Read more about the article Handling Dates with PHP5 in Any Database
Credits

Handling Dates with PHP5 in Any Database

  • Post author:Christos Pontikis
  • Post published:February 24, 2013
  • Post category:Web Development
  • Reading time:9 mins read

The problem Date handling with PHP is a complex task, especially when application users are located in different timezones (all over the world) and they are using different date format…

Continue ReadingHandling Dates with PHP5 in Any Database

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