Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationCustomizing CalendarScript (Moderators: scott, DanO, Marty)How do I return multiple date formats
Pages: [1]   Go Down
Print
Author Topic: How do I return multiple date formats  (Read 290 times)
0 Members and 1 Guest are viewing this topic.
bigO
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: December 18, 2006, 09:41:00 PM »

I am using this code to allow users to populate a text field by selecting a date from the pop-up calendar. This part works.

How do I have this function also populate another field with the same exact date in a DIFFERENT format?

Here is the code that I have tried without success:

<input type="text" id="topic_publish_date" name="topic_publish_date" maxlength="11" size="11" value="<%=strBlogTopicPublishDate%>" readonly="readonly"><input type="text" id="sort_by_date" name="sort_by_date" value="" /> <a href="#" onclick="cal1.select(document.standardform.sort_by_date,'anchor1','MM/dd/yyyy'); cal1.select(document.standardform.topic_publish_date,'anchor1','d NNN yyyy'); return false;" title="cal1.select(document.standardform.sort_by_date,'anchor1','MM/dd/yyyy'); cal1.select(document.standardform.topic_publish_date,'anchor1','d NNN yyyy'); return false;" name="anchor1" id="anchor1" class="floatimg"> </a>

Any help would be appreciated.

Logged
Pages: [1]   Go Up
Print
Jump to: