CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 How can I format date fields in forms

Print topic Send  topic

Author Message
daxxel
Posted: 12/18/2002, 7:46 AM

I would like to know how to create a kind of format like __/__/___ in forms to get the date fields.
Alessandro Zipoli
Posted: 12/18/2002, 8:49 AM

You can add this code in your form Before Show events (PHP):

$fldDateFieldName=date("d/m/y",strtotime("$fldDateFieldName"));

Bye

Ale
jb
Posted: 12/18/2002, 12:40 PM

Go look at:
http://spiritwolfx.com
Select Code Samples from menu, then the auto date formatter.

It's excellent. Put in <head> of page, add attributes to to input tag and the BEST date input is there, for free.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.