Project / Support Center
Welcome, Guest. Please login or register. May 22, 2012, 02:01: AM
Home Help Search Login Register
D-Web Web Site Creator D - Web Web Site Creator On-line HTML Editor No Programming knowledge required. Web Global Net PayPal-Cart Shopping Cart System PayPal - Kart Shopping Cart System for E-Commerce over the internet, that's easy to use. Web Global Net Newsletter Manager Newsletter Manager On-line Newsletter Creator with Email Subscriber Management.
Ring Central Discount
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  php related  |  Topic: Grabbing specific date info from a stored date time value 0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Send this topic Print
Author Topic: Grabbing specific date info from a stored date time value  (Read 1393 times)
Web Global Net
Administrator
******
Offline Offline

Posts: 1,685


« on: May 03, 2011, 03:56: PM »

<? php substr("dynamic value", 5, 2);?> or as it would appear <? php substr("2010-05-30 07:32:44", 5, 2);?>

5 Represents the last digit to ignore before reading the information and 2 represents the amount of data or information to grab

so in <? php substr("2010-05-30 07:32:44", 5, 2);?>

it would grab 05 or month of May
Report to moderator   Logged
Pages: [1] Go Up Send this topic Print 
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  php related  |  Topic: Grabbing specific date info from a stored date time value « previous next »
Jump to:  


Login with username, password and session length
Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!