Go Back   WebMasters.org Forums > Website Design & Development > PHP Forum

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 09-01-2010, 02:13 AM
Senior Member gay
 
Join Date: Jun 2010
Posts: 169
Default

Good one dude..keep doing nice work
__________________
cheap uggs and nfl jerseys and cheap uggs!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 11-30-2010, 11:06 AM
Junior Member
 
Join Date: Nov 2010
Location: UK
Posts: 21
Default

Hello Friends.....

1.Obtain the string you want to convert into a date. This can be through a text box on an HTML form or it might be from a database table.

2.Store this string in a string variable using the assignment statement. For example, if using a form, $myDate = $_POST["txtDate"];

3.Define a variable to store the resulting date. Do this using the assignment operator and store a zero in the variable: $resultDate = 0;

4.Use the strtotime function to convert the string and store it in the date variable: $resultDate = strtotime($myDate);

Thanks
__________________
website designing services
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:13 PM.



Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
vB Ad Management by =RedTyger=