We use cookies to improve user experience, and analyze website traffic.

  • How To
  • AngularJs
  • Apache
  • CSS
  • Git
  • Google Maps
  • HTML
  • Java
  • JavaScript
  • Linux
  • NodeJs
  • PHP
  • Symfony
  • Vue.js
  • Books
    • Learn HTML
    • Learn CSS
    • Learn Git
    • Learn Javascript
    • Learn PHP
  • Exercises
    • HTML
    • JavaScript
    • Git
    • CSS
    • PHP
  • Quizzes
  • Snippets
  • Tools
  • String Functions
  • Books
    • Learn HTML
    • Learn CSS
    • Learn Git
    • Learn Javascript
    • Learn PHP
  • Exercises
    • HTML
    • JavaScript
    • Git
    • CSS
    • PHP
  • Quizzes
  • Snippets
  • Tools
  • String Functions
  1. Snippets
  2. ›
  3. datetime

How-to articles, tricks, and solutions about DATETIME

How to Convert DateTime to String in PHP

If you wish to manipulate with the DateTime object in PHP, then this snippet is for you. Here, you will learn how to correctly convert DateTime to string.

php string format list datetime object

How to Get the Current Year with PHP

On this page, you will get solutions to a common issue in PHP: how to get the current year.

php date datetime year
Tools
Password Generator HTML Editor HTML encoder/decoder CSS Maker Color Picker Base 64 Code Diff Geometric Images Color Converter Color Mixer Color HEX COLOR HSL Color Hwb Color Cmyk Color Rgb
  • Quizzes
    • HTML Basic
    • CSS Basic
    • Javascript Basic
    • PHP basic
    • ES6 Basic
    • TypeScript Basic
    • Angular Basic
    • React Basic
    • Sass Basic
    • Vue.js Basic
    • Git Basic
    • SQL Basic
  • Snippets
    • How To JavaScript
    • How To NodeJs
    • How To Linux
    • How To AngularJs
    • How To PHP
    • How To HTML
    • How To CSS
    • How To Symfony
    • How To Google Maps
    • How To Git
    • How To Apache
    • How To Java
    • How To Vue.js
  • Our Books
    • Learn HTML
    • Learn CSS
    • Learn Git
    • Learn Javascript
    • Learn PHP
    • Exercises
    • HTML
    • JavaScript
    • Git
    • CSS
    • PHP
  • Our Tools
    • Website Audit and SEO
    • Typing Test
    • Color Picker
    • HTML Encoder
    • HTML Editor
    • CSS Maker
    • Password Generator
    • Base 64
    • Code Diff
    • Geometric Images
  • String Functions
    • String Length Calculator
    • String to MD5 Hash Generator
    • String to Sha256 Hash Generator
    • String Reverse
    • URL Encoder
    • URL Decoder
    • Base 64 Encoder
    • Base 64 Decoder
    • Extra Spaces Remover
    • String to Lowercase Converter
  • About Us
  • Privacy Policy for W3Docs
Follow Us
Company © W3docs. All rights reserved.