Date Time in PHP

Date/time is required in almost all the projects. This article is all about how to use date/time efficiently. First thing people often faces is setting timezone. To check default timezone:-



To set timezone After finding timezone, sometime we want to change it.

Example: date_default_timezone_set(‘Asia/Kolkata’);// this will set timezone to’Asia/Kolkata […]

Continue reading