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

If Then on Date

LEGEND ,
Jun 13, 2008 Jun 13, 2008
Hi All...
Can anyone help out with this one?

I need to do a 'If Then' statement on the current date.
Something like this:
IF todays date is more than 3 days after the date in the database THEN

Thanks
Andy


TOPICS
Server side applications
485
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 ,
Jun 13, 2008 Jun 13, 2008
Andy wrote:
> Hi All...
> Can anyone help out with this one?
>
> I need to do a 'If Then' statement on the current date.
> Something like this:
> IF todays date is more than 3 days after the date in the database THEN

ASP or PHP or CF?

Steve
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 ,
Jun 13, 2008 Jun 13, 2008
Sorry i should have said - its ASp but i've found the snwer now thanks
For anyone else who may need it its:

%
Dim date1 , date2 , strDateDiff
date1 = Now()
date2 = (RS.Fields.Item("MyDate").Value)
strDateDiff = DateDiff("yyyy" , date2 , date1 )
If strDateDiff > 3 Then %>
Response.Write "your text"
Else
Response.Write "your text"
End If
%>


"Dooza" <doozadooza@gmail.com> wrote in message
news:g2tno8$8t$1@forums.macromedia.com...
> Andy wrote:
>> Hi All...
>> Can anyone help out with this one?
>>
>> I need to do a 'If Then' statement on the current date.
>> Something like this:
>> IF todays date is more than 3 days after the date in the database THEN
>
> ASP or PHP or CF?
>
> Steve


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 ,
Jun 13, 2008 Jun 13, 2008
thanks andy,

out of interest what was the db

regards

k


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
New Here ,
Jun 17, 2008 Jun 17, 2008
yep id like to know too
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 ,
Jul 23, 2008 Jul 23, 2008
LATEST
Sorry for the delay - It's an Access DB


"kiss4me08" <webforumsuser@macromedia.com> wrote in message
news:g38n6h$8l3$1@forums.macromedia.com...
> yep id like to know too


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