Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old May 22nd, 2008, 05:15 PM
Member
 
Join Date: Jan 2008
Posts: 36
Default add date

Hi,

I have a date url.calldate. My calldate is like 05/01/08 and I want the values for 1 day after this day too. I used
DateAdd("#url.calldate#", 1, "mm/dd/yy")

I receive error and I need your help.
Reply
  #2  
Old May 22nd, 2008, 06:46 PM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 12,771
Default

DateAdd has the format:

DateAdd("datepart", number, "date")

Check the documentation.
Reply
  #3  
Old May 22nd, 2008, 08:32 PM
Member
 
Join Date: Jan 2008
Posts: 36
Default

Quote:
Originally Posted by acoder
DateAdd has the format:

DateAdd("datepart", number, "date")

Check the documentation.

so it should be:

DateAdd("dd", 1 , "#url.calldate#")
Reply
  #4  
Old May 23rd, 2008, 09:47 AM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 12,771
Default

No, that should be one "d", otherwise it looks fine.
Reply
  #5  
Old May 23rd, 2008, 01:11 PM
Member
 
Join Date: Jan 2008
Posts: 36
Default

Thank you so much. it works. your're great.
Reply
  #6  
Old May 23rd, 2008, 01:34 PM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 12,771
Default

No problem, you're welcome. Glad to help.
Reply
Reply

Bookmarks

Thread Tools

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

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

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles