473,325 Members | 2,480 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

about date code..

hi guys, my problem is when to get the date 3 day early, example if the date is 7/10/2004 and i want to get the date of 3 day early like 4/10/2004, do u guys have any idea.....thanks

-----------------------------
This message is posted by http://asp.forumszone.com

Jul 19 '05 #1
2 1065
<ca******@hotmail.com> wrote in message
news:81*************@asp.forumszone.com...
hi guys, my problem is when to get the date 3 day early, example if the date is 7/10/2004 and i want to get the date of 3 day early like 4/10/2004,
do u guys have any idea.....thanks
-----------------------------
This message is posted by http://asp.forumszone.com

Use the DateAdd function of VBScript.
Jul 19 '05 #2
If you have the date in a "date variable" then you can just add numbers to
it to increment/decrement days:

Dim myDay
' The variable will now have a date of 1/1/2004
myDay = DateSerial(1, 1, 2004)

' Add 4 days. The variable will now have 1/5/2004 (US Notation)
myDay = myDay + 4

--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
<ca******@hotmail.com> wrote in message
news:81*************@asp.forumszone.com...
hi guys, my problem is when to get the date 3 day early, example if the date is 7/10/2004 and i want to get the date of 3 day early like 4/10/2004,
do u guys have any idea.....thanks
-----------------------------
This message is posted by http://asp.forumszone.com

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: kazack | last post by:
Hi all it's me again with another question as I got further in my book. The chapter I am in covers structres, abstract data and classes. I only read through to the end of the coverage on...
12
by: David Lindsay | last post by:
I want to put date and time on my web page, and to be sure it tracks the BST/ GMT changes. Can anyone help me, I have gone back in my historic file for quite a while and not found anything. Sorry...
0
by: Logan McKinley | last post by:
I have a datalist that takes two clicks to show the SelectedItem or UpdateItem. The first click seems to fire the event but does not seem to change the page, the second click doesn't fire the...
2
by: norton | last post by:
Hi, I am learning Regular Expression and currently i am trying to capture information from web page. I wrote the following code to capture the ID as well as the Title Dim regex = New Regex( _...
8
by: pauldepstein | last post by:
I am writing a program which looks at nodes which have coordinates which are time-dependent. So I have a class called node which contains the private member declarations int date; int month; ...
5
by: Donkey | last post by:
Hello, I want to find out how many digits does each date type have and how many bytes does it occupy in memory, so I wrote a program below: #include <stdio.h> const long double...
1
by: dokter.cinta | last post by:
hi all.... i have good experience with vb but i have some serious problems i have created a mysql with table dss but i`m confused about this i think many people will have this problem in...
2
by: Ted | last post by:
1) In several tables, in my MySQL version, I created columns using something like the following: `ab_timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, This...
5
by: Amzul | last post by:
hello all i am breaking my head over this and there isnt any good solution that i have saw til now, my problam is that i want to tell the date of a sertin day what was choosen <select...
8
by: AKS | last post by:
Hi! Here's a small test case (for Firefox): var o = { p: { func: function () {}, }, test: function () { var msg = ; var d = new Date;
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.