|
-
Aug 2nd, 2004, 04:36 AM
#1
Thread Starter
New Member
different in days by number
Hi,
What is the correct syntax to find the different in days by number?
Due Date : 31/7/2004
Date Return: 2/8/2004 which is =now()
No Of day : = 3 days << how to get this value?
-
Aug 2nd, 2004, 04:55 AM
#2
Fanatic Member
datediff() function mate. cheers.
-
Aug 2nd, 2004, 05:06 AM
#3
Thread Starter
New Member
Originally posted by brown monkey
datediff() function mate. cheers.
This is the code I use
txtFine.Text = CStr(DateDiff(DateInterval.Day, CDate(txtDueDate.Text), CDate(Now())))
Where txtDueDate.Text = 1/8/04
And the result is 207 ??
-
Aug 2nd, 2004, 05:12 AM
#4
Fanatic Member
it's month/day/year mate. not day/month/year. 207 alright. from jan/one/two thousand four.
-
Aug 2nd, 2004, 05:27 AM
#5
Sleep mode
You can also use the pure .NET way by using TimeSpan class .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|