Re: How to manage date fields in template
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Wed, 12 Nov 2008 23:33:56 -0500
Valeria wrote:
Hi, in my website I've a template file with date/time fields
<dt><label for="field_date_from">Sart Date</label></dt>
<dd id="data_date_from">
<select class="select" id="field_date_from" name="date_from_month">
<option value="">-</option>
{dropdownlist:date_months,""}
</select>
<select class="select" name="date_from_day">
<option value="">-</option>
{dropdownlist:date_days,""}
</select>
<select class="select" name="date_from_year">
<option value="">-</option>
{dropdownlist:date_years,""}
</select>
</dd>
Is it possible automatically select day month year of today?
Thanks
Yes, it's not hard at all in PHP. See http://www.php.net/manual/en/ref.datetime.php for the functions you need.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.
- Follow-Ups:
- Re: How to manage date fields in template
- From: Valeria
- Re: How to manage date fields in template
- References:
- How to manage date fields in template
- From: Valeria
- How to manage date fields in template
- Prev by Date: Re: How to manage date fields in template
- Next by Date: result of a function inner one other
- Previous by thread: Re: How to manage date fields in template
- Next by thread: Re: How to manage date fields in template
- Index(es):
Relevant Pages
|