datetime jakarta taglib

L

LiquidDog

I am using the following code using the jakarta taglibs datetime tag:
<tr>
<td width="52">Date:
<dt:format pattern="MMMM d, yyyy">
<dt:currentTime/>
</dt:format>
</td>
<td width="123">
<input name="textfield" type="text" size="20"
value="<dt:format pattern="MMMM d,
yyyy"><dt:currentTime/></dt:format>"></td>

The output from the first dt tag is as expected: February 25, 2004
The output from the second tag (inside the input field value
attribute) comes out as: 0014 25, 2004

The 0014 appears to be a random number. I have tried pattern="MMM d,
yyyy" and get similar results. Am I missing something?

Thanks in advance for any help.
 
P

P.Hill

LiquidDog wrote:
<dt:format pattern="MMMM d, yyyy"><dt:currentTime/></dt:format>"></td>

Specifying month, day and year and you want the current time?
What did you really want?

HTH,
-Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top