Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Newsgroup Archive
Frontpage Newsgroups
Frontpage Client
DateAdd function in Frontpage
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Stefan B Rusynko, post: 6651120"] If you always want 1 year from the current date - In a .asp page it would be <% NewDate=DateAdd("Y", 1, Date()) DateText="Must be after " & MonthName(Month(NewDate)) & " " Year(NewDate) Response.Write DateText %> See the VBscript references DateAdd, MonthName,Month, and Year at: [URL]http://www.devguru.com/technologies/vbscript/quickref/vbscript_list.html[/URL] Or, since you don't care about the day, you could just do <% = "Must be after " & MonthName(Month(Date()) & " " Year(Date())+1 %> _____________________________________________ SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ] "Warning - Using the F1 Key will not break anything!" (-; _____________________________________________ Hi I would like to have a text box on a form (asp) showing something like "Must be after February 2010" This would be for forms shown during 2009. So the date (year) would be this year +1 Is this possible in frontpage? Sort of the same as the access function DateAdd ="Must be after "&Format(DateAdd("Y", 1, Date()),"mmm yyyy" I know this will not work in frontpage, just an example [/QUOTE]
Verification
Post reply
Forums
Archive
Newsgroup Archive
Frontpage Newsgroups
Frontpage Client
DateAdd function in Frontpage
Top