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

Pls Help urgent with DATE problem

LEGEND ,
Jul 02, 2006 Jul 02, 2006

Copy link to clipboard

Copied

Dear Sir,

I have to make a classified system using asp and its almost ready but.....,
i really have a big hope that someone helps me here

I have two columns to play with

1. strDate
2. StrDateDisplayAD

Once the user submits his AD I want the date to be inserted into the date
column strDate which is working perfectly well

but at the same time I want the date to be added + 5 days and insert into
the strDateDisplayAd column

for Example,

Lets say someone post his ad on 5th July, then the values in the column must
be

strDate | StrDateDisplayAD

5/6/06 | 10/5/06


Thanks in advance



TOPICS
Server side applications

Views

168
Translate

Report

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 02, 2006 Jul 02, 2006

Copy link to clipboard

Copied

LATEST
Use a hidden form element that has a value of 5 days added.

In ASP VBScriptit would look like this:

<input name="StrDateDisplayAD" type="hidden" id="StrDateDisplayAD"
value="<%= FormatDateTime(DateAdd("d", 5, Now()),2) %>">

--
Ken Ford
Adobe Community Expert


"Techy" <anwar@clickbahrain.com> wrote in message
news:e883h2$it2$1@forums.macromedia.com...
> Dear Sir,
>
> I have to make a classified system using asp and its almost ready
> but.....,
> i really have a big hope that someone helps me here
>
> I have two columns to play with
>
> 1. strDate
> 2. StrDateDisplayAD
>
> Once the user submits his AD I want the date to be inserted into the date
> column strDate which is working perfectly well
>
> but at the same time I want the date to be added + 5 days and insert into
> the strDateDisplayAd column
>
> for Example,
>
> Lets say someone post his ad on 5th July, then the values in the column
> must
> be
>
> strDate | StrDateDisplayAD
>
> 5/6/06 | 10/5/06
>
>
> Thanks in advance
>
>
>


Votes

Translate

Report

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