HighDots Forums  

Date Format

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Date Format in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dandykins
 
Posts: n/a

Default Date Format - 12-01-2006 , 09:28 AM






Hi, can anyone tell me how to set the format within my Form text box to date i.e. dd/mm/yyyy, so that the user is forced to input the date in this manner??

:frown;

Reply With Quote
  #2  
Old   
Michael Fesser
 
Posts: n/a

Default Re: Date Format - 12-01-2006 , 09:50 AM






..oO(Dandykins)

Quote:
Hi, can anyone tell me how to set the format within my Form text box to
date i.e. dd/mm/yyyy, so that the user is forced to input the date in
this manner??
That's not possible, at least not reliably. You would either have to use
three different input fields or - even better and more userfriendly - a
server-side script that accepts different date formats and reformats the
date according to your requirements. How to do that depends on the used
scripting language. In PHP for example the function strtotime() might
come in handy.

Micha


Reply With Quote
  #3  
Old   
Dandykins
 
Posts: n/a

Default Re: Date Format - 12-01-2006 , 11:04 AM



Thanks Michael, should've joined the forum sooner, I've spend days trying to do this!

Deborah

Reply With Quote
  #4  
Old   
Buzby
 
Posts: n/a

Default Re: Date Format - 12-01-2006 , 01:13 PM



Dandykins wrote:

Quote:
Hi, can anyone tell me how to set the format within my Form text box
to date i.e. dd/mm/yyyy, so that the user is forced to input the date
in this manner??

:frown;
Use a date picker script to force the issue.

--
Buzby
There's nothing more dangerous than a resourceful idiot


Reply With Quote
  #5  
Old   
Dandykins
 
Posts: n/a

Default Re: Date Format - 12-05-2006 , 04:14 AM



Buzby

As a complete novis, I'd be really grateful if you could give me a little more help with this, i.e. how??

Deborah

Reply With Quote
  #6  
Old   
Steve
 
Posts: n/a

Default Re: Date Format - 12-05-2006 , 04:58 AM



On Tue, 5 Dec 2006 09:14:05 +0000 (UTC), "Dandykins"
<webforumsuser (AT) macromedia (DOT) com> wrote:

Quote:
As a complete novis, I'd be really grateful if you could give me a little more help with this, i.e. how??
Get the free date picker from this site:

http://www.softcomplex.com/products/tigra_calendar/

and use it on your page like this (examples at top of page - click the
little calendar icon):

http://www.softcomplex.com/products/...dar/demo1.html
--
Steve
steve at flyingtigerwebdesign dot com


Reply With Quote
  #7  
Old   
Dandykins
 
Posts: n/a

Default Re: Date Format - 12-05-2006 , 05:23 AM



Thanks Steve, I've downloaded it and saved it to file. I guess I need to insert it, but what as?

Deborah

Reply With Quote
  #8  
Old   
Steve
 
Posts: n/a

Default Re: Date Format - 12-05-2006 , 06:05 AM



On Tue, 5 Dec 2006 10:23:42 +0000 (UTC), "Dandykins"
<webforumsuser (AT) macromedia (DOT) com> wrote:

Quote:
Thanks Steve, I've downloaded it and saved it to file. I guess I need to insert it, but what as?
There is documentation and examples to help you on the site. The date
picker is javascript.
--
Steve
steve at flyingtigerwebdesign dot com


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.