CodeCharge Studio
search Register Login  

Visual PHP Web Development

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

YesSoftware Forums -> CodeCharge -> Tips & Solutions

 Change default date value ahead two days

Print topic Send  topic

Author Message
madmic

Posts: 11
Posted: 08/23/2006, 1:26 PM

If you want to change the default date value use the the currentdate then go into the code look or time()

change to :

if(!is_array($this->date_needed->Value) && !strlen($this->date_needed->Value) && $this->date_needed->Value !== false)  
                    $this->date_needed->SetValue(time()+ (2 * 24 * 60 * 60));  
  
you can set for any amount of days in the future gives them a strting point when picking a day small trick but cool for those user who don't read to pick a date two or more days out but this is a visual que before they get the ERROR your date is to soon.

lori 8-)
_________________
Madmic
View profile  Send private message
madmic

Posts: 11
Posted: 08/25/2006, 7:04 AM

Opps you can actually put


time()+ (2 * 24 * 60 * 60)
in the default box no need to mess with the code. EVEN Better! :-D :-D
_________________
Madmic
View profile  Send private message
wkempees


Posts: 1679
Posted: 08/25/2006, 9:54 AM

http://forums.codecharge.com/posts.php?post_id=75995&s_keyword=month+date

CCDateAdd()

Nice to have a look at.

Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message

Add new topic Subscribe to topic   


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.