DallasAggie
Programmer
Hi all,
I am having trouble getting the format I need to display on a page. I have this page, that when opened, it'll insert today's date in a form field and automatically query a database for today's date.
The problem I'm having is that <%= FormatDateTime(Date(),2)%> is giving me m/d/yyyy. I need to display it in 2-digit month, 2 digit-day & 4-digit year..as: mm/dd/yyyy. I've searched all boards and I cannot find a solution.
Since I have the code inside of a text box, I'm not sure of any other way to get around this. Here is a snippet of the code.
</select>
</b></font></td><td width="15%" align="center" valign="top">
<p align="center"><font size="2" face="Arial, Helvetica, sans-serif">
<input name="LastUpdate_Input" type="text" id="LastUpdate_Input" size="15" maxsize="10" tabindex="3" value="<%= FormatDateTime(Date(),2)%>">
</font></p>
</td>
<td width="25%" align="center" valign="top"><font size="2" face="Arial, Helvetica, sans-serif">
<input name="name_input" type="text" size="20" maxsize="10" value="" tabindex="4">
</font></td>
Does anyone have any suggestions?
Thanks in advance.
Roberto Andrade, Jr.
Boeing Homeland Security & Services
I am having trouble getting the format I need to display on a page. I have this page, that when opened, it'll insert today's date in a form field and automatically query a database for today's date.
The problem I'm having is that <%= FormatDateTime(Date(),2)%> is giving me m/d/yyyy. I need to display it in 2-digit month, 2 digit-day & 4-digit year..as: mm/dd/yyyy. I've searched all boards and I cannot find a solution.
Since I have the code inside of a text box, I'm not sure of any other way to get around this. Here is a snippet of the code.
</select>
</b></font></td><td width="15%" align="center" valign="top">
<p align="center"><font size="2" face="Arial, Helvetica, sans-serif">
<input name="LastUpdate_Input" type="text" id="LastUpdate_Input" size="15" maxsize="10" tabindex="3" value="<%= FormatDateTime(Date(),2)%>">
</font></p>
</td>
<td width="25%" align="center" valign="top"><font size="2" face="Arial, Helvetica, sans-serif">
<input name="name_input" type="text" size="20" maxsize="10" value="" tabindex="4">
</font></td>
Does anyone have any suggestions?
Thanks in advance.
Roberto Andrade, Jr.
Boeing Homeland Security & Services