LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-05-2006, 10:00 AM   #1
ati
Member
 
Registered: Oct 2005
Location: london
Distribution: fedora 4
Posts: 61

Rep: Reputation: 15
Cool Date and Time for dropdownlist?


hello all

i have this dropdown list:

html
Code:

&nbsp;<select name="cdate" id="cdate" onchange="changedate()"> <option>Date</option> <option value="n">No date</option> <option value="a">2nd April 2006</option> <option value="b">2 April 2006</option> <option value="c">2nd Apr 2006</option> <option value="d">2 Apr 2006</option> <option value="e">02/04/2006</option> <option value="f">2nd April 06</option> <option value="g">2 April 06</option> <option value="h">2nd Apr 06</option> <option value="i">2 Apr 06</option> <option value="j">02/04/06</option> <option value="k">2nd April</option> <option value="l">2 April</option> <option value="m">2nd Apr</option> <option value="o">2 Apr</option> <option value="p">02/04</option> </select>




is it possible to use php to dislpay the current date in different formats ?

thanks
 
Old 05-05-2006, 10:18 AM   #2
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
Check out the strftime() function. It will format a date time string for you using a format string
 
Old 05-05-2006, 10:20 AM   #3
ati
Member
 
Registered: Oct 2005
Location: london
Distribution: fedora 4
Posts: 61

Original Poster
Rep: Reputation: 15
thanks i'll have a look
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot set time/date to other time zone than UTC (Kubuntu) jamangold Ubuntu 1 12-23-2005 05:42 PM
Start Date + Time Duration = End Date/Time calculator? ToBe Linux - General 3 09-26-2005 10:17 AM
date/time in c++ 1337 Twinkie Programming 3 01-01-2005 12:23 AM
Display the date and time from another time zone lothario Linux - Software 4 07-31-2004 03:27 PM
Date and Time mairul Debian 7 12-25-2003 12:26 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration