Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Result for month (s) ago
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Result for month (s) ago

 Post Reply Post Reply
Author
ngaisteve1 View Drop Down
Groupie
Groupie
Avatar

Joined: 26 December 2002
Location: Malaysia
Status: Offline
Points: 169
Post Options Post Options   Thanks (0) Thanks(0)   Quote ngaisteve1 Quote  Post ReplyReply Direct Link To This Post Topic: Result for month (s) ago
    Posted: 26 October 2003 at 10:06pm
let's say I have a combo box with value one month, two month and three month. When the user select one month, it means that the user want to see all results a month ago. Eg, if today is 25-Oct. When he selects one month, then all result from 25-Sep to 25-Oct. For now, just forget about the special case like Feb or any special case first. Which date function is best apply for this case?

Thank you for all contribution.
Back to Top
Phat View Drop Down
Senior Member
Senior Member


Joined: 23 February 2003
Status: Offline
Points: 386
Post Options Post Options   Thanks (0) Thanks(0)   Quote Phat Quote  Post ReplyReply Direct Link To This Post Posted: 26 October 2003 at 10:38pm
Use Dateadd

Adds or subtracts a time interval to a date and gives you back the new date.

Function Name: DateAdd
Syntax:DateAdd(interval, number, date)

interval - can have these values:
d day
h hour
m month
n minute
q quarter
s second
w weekday
ww week of year
y day of year
yyyy year

number is a positive number of time you want to add to the date if number is negative then that number will be subtracted from the date

Example: DateAdd("m", 3, "1-MAY-98")
This example will add 3 months to May 1st 1998

found info at http://www.loudasp.com/KnowledgeBase/showfaq.asp?faqid=784&a mp;catID=28
Back to Top
ngaisteve1 View Drop Down
Groupie
Groupie
Avatar

Joined: 26 December 2002
Location: Malaysia
Status: Offline
Points: 169
Post Options Post Options   Thanks (0) Thanks(0)   Quote ngaisteve1 Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2003 at 2:17am
Thank you so much. It helps.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.