Wrox Programmer Forums
|
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 7th, 2004, 10:29 AM
Authorized User
 
Join Date: Oct 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default Date function problem

I have this code:


Dim dates_Dif

dates_Dif = DateDiff(DateInterval.Day, orderdate, arrivedate, [FirstDayOfWeek.Sunday], [FirstWeekOfYear.Jan1])


What is wrong in this code???

 
Old November 8th, 2004, 09:58 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Maybe the brackets - [].
http://www.w3schools.com/vbscript/func_datediff.asp

What error is it giving?






Similar Threads
Thread Thread Starter Forum Replies Last Post
Date Function desireemm SQL Language 1 March 26th, 2007 04:28 AM
ASP Date Function cancer10 Classic ASP Databases 3 January 5th, 2007 06:35 PM
between date function surendran SQL Server 2000 2 October 19th, 2006 09:31 PM
Date Function problem beetle_jaipur Classic ASP Basics 5 July 6th, 2006 01:08 PM
ASP Date Function Ken11 Classic ASP Basics 3 September 30th, 2003 02:04 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.