Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

ASP Now() function

LEGEND ,
Jan 09, 2008 Jan 09, 2008
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


TOPICS
Server side applications
256
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 09, 2008 Jan 09, 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
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 10, 2008 Jan 10, 2008
LATEST
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
>>
>
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines