Skip to content

Instantly share code, notes, and snippets.

@YuvrajKhavad
Last active November 5, 2020 07:21
Show Gist options
  • Save YuvrajKhavad/561a1f8cc37ce117cd1221ca2486de41 to your computer and use it in GitHub Desktop.
Save YuvrajKhavad/561a1f8cc37ce117cd1221ca2486de41 to your computer and use it in GitHub Desktop.
Convert "2020-11-02 09:23:36" type of date in to November 2020 using php.
<?php
$date = date_create("2020-11-02 09:23:36");
echo date_format($date,"F Y");
?>
OutPut: November 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment