Skip to main content
Inspiring
January 9, 2008
Question

ASP Now() function

  • January 9, 2008
  • 2 replies
  • 256 views
Hi.
I have a hiddenfield on my form with the value of <%Now() %>
My form update the database and i expected the hidden field code to insert
today's date, but it's not working.
The form isn't inserting the date.
Any ideas why?

Thanks
Andy


This topic has been closed for replies.

2 replies

Inspiring
January 10, 2008
And if you want only the date (as opposed to date and time), use:
<%= Date() %>

"Andy" <andy@work.com> wrote in message
news:fm2ota$u8$2@forums.macromedia.com...
> It's ok - I sorted it.
> If it's any use it should have been <%=Now() %>
>
> Silly me
> :-)
>
> "Andy" <andy@work.com> wrote in message
> news:fm2n9p$sfu$2@forums.macromedia.com...
>> Hi.
>> I have a hiddenfield on my form with the value of <%Now() %>
>> My form update the database and i expected the hidden field code to
>> insert today's date, but it's not working.
>> The form isn't inserting the date.
>> Any ideas why?
>>
>> Thanks
>> Andy
>>
>
>


Inspiring
January 9, 2008
It's ok - I sorted it.
If it's any use it should have been <%=Now() %>

Silly me
:-)

"Andy" <andy@work.com> wrote in message
news:fm2n9p$sfu$2@forums.macromedia.com...
> Hi.
> I have a hiddenfield on my form with the value of <%Now() %>
> My form update the database and i expected the hidden field code to insert
> today's date, but it's not working.
> The form isn't inserting the date.
> Any ideas why?
>
> Thanks
> Andy
>