programmingcollections

Showing posts with label datetime. Show all posts
Showing posts with label datetime. Show all posts

Monday, 30 March 2015

Convert number to month name in PHP

$monthNum  = 4;
$dateObj   = DateTime::createFromFormat('!m', $monthNum);
$monthName = $dateObj->format('F'); //April
$monthName = $dateObj->format('m'); //01
Posted by Jayakumar Official at 00:20 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: datetime, php
Older Posts Home
Subscribe to: Comments (Atom)

About Me

Jayakumar Official
View my complete profile

Blog Archive

  • ▼  2015 (10)
    • ▼  May (5)
      • Deprecated: Function split() is deprecated
      • how to get radio button value in jquery?
      • Click HTML button to call PHP function
      • Upgrade Oracle Java 7 to Java 8 for Ubuntu
      • how to make or remove underline in css/html
    • ►  April (2)
    • ►  March (1)
    • ►  February (2)
Awesome Inc. theme. Powered by Blogger.