Adobe Dreamweaver Forums



Last 10 THreads :         On hitTest go to next frame? Why doesn't this work? (Last Post : Koolaz Games - Replies : 0 - Views : 1 )           »          Contribue won't allow Images to be inserted (Last Post : RiderAlberta - Replies : 0 - Views : 1 )           »          This just sucks.... (Last Post : TC2112 - Replies : 11 - Views : 12 )           »          Update from array (Last Post : -==cfSearching==- - Replies : 3 - Views : 4 )           »          PHP Notice Problem (Last Post : UteFanJason - Replies : 7 - Views : 8 )           »          Limited Ammo (Last Post : kglad - Replies : 19 - Views : 20 )           »          Icon Text sticks when returning to home page.. (Last Post : kglad - Replies : 1 - Views : 2 )           »          controlling Flash player (Last Post : motonutty - Replies : 0 - Views : 1 )           »          Communicating with FLASH player via actionscript (Last Post : motonutty - Replies : 0 - Views : 1 )           »          button skin (Last Post : Merlyn MM - Replies : 4 - Views : 5 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Dreamweaver: Main > Dreamweaver Application Development
 
Tags: ,

Reply
  #1 (permalink)  
Old 06-13-2008, 11:43 AM
Andy
 
Posts: n/a
Diggs:
Default If Then on Date

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


Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-13-2008, 12:13 PM
Dooza
 
Posts: n/a
Diggs:
Default Re: If Then on Date

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
Reply With Quote
  #3 (permalink)  
Old 06-13-2008, 12:39 PM
Andy
 
Posts: n/a
Diggs:
Default Re: If Then on Date

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



Reply With Quote
  #4 (permalink)  
Old 06-13-2008, 12:56 PM
twocans
 
Posts: n/a
Diggs:
Default Re: If Then on Date

thanks andy,

out of interest what was the db

regards

k


Reply With Quote
  #5 (permalink)  
Old 06-17-2008, 04:29 PM
kiss4me08
 
Posts: n/a
Diggs:
Default Re: If Then on Date

yep id like to know too
Reply With Quote
  #6 (permalink)  
Old 07-23-2008, 10:11 AM
Andy
 
Posts: n/a
Diggs:
Default Re: If Then on Date

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



Reply With Quote
  #7 (permalink)  
Old 09-28-2008, 01:03 AM
Andy
 
Posts: n/a
Diggs:
Default Re: If Then on Date

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



Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 12:00 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk