Skip to content

PHP Tricks

Few codes to visualise your imagination

  • PHP
  • WordPress
  • Magento
  • JQuery
  • CSS
  • Contact

Tag: PHP Date

How to change UTC time to your local time using PHP

How to change UTC time to your local time using PHP is big question in PHP programming language. Today, PHP Tricks provide you a simple and quick function to covert UTC/GMT time to your local time using DateTimeZone PHP class.

Published March 23, 2017
Categorized as PHP Tagged GMT to Local, PHP Date, UTC to Local

Get next seven days list from Today using PHP

A PHP function that helps to get list of next days form current day. There are many way but I created one of best solution using foreach and strtotime in-built PHP functions.

Published March 19, 2017
Categorized as PHP Tagged php, PHP Date, PHP Time

About Author

Ashutosh Pratap

Recent Tricks

  • Save and show a custom field as Order item meta data – Woocommerce
  • Add woocommerce product title to all product images alt tags
  • Fix: Fatal error: Allowed memory size – Increase PHP Memory
  • How to change UTC time to your local time using PHP
  • How to Use Shortcodes in WordPress Sidebar Widgets

Categories

  • CSS
  • JQuery
  • Magento
  • PHP
  • WordPress

Calendar

January 2023
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
3031  
Jan    
PHP Tricks
Proudly powered by WordPress.