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
_________________
Madmic |
|
|
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!
_________________
Madmic |
|
|
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
|
|
|
|