Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional 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 August 9th, 2007, 04:59 PM
Authorized User
 
Join Date: Nov 2005
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
Default count of dayofweek from date

need dayofweek count from date

for e.g.: for 08/19/2007, result is 3 (because it is 3rd sunday in august 2007 month).

for 08/28/2007, result is 4 (because it is 4th Tuesday in august 2007 month).

is there any .NET date functions? or need to write my own code.
 
Old August 9th, 2007, 06:25 PM
Authorized User
 
Join Date: Nov 2005
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
Default

found answer thanks. Return (oDate.Day - 1) / 7 +1.





Similar Threads
Thread Thread Starter Forum Replies Last Post
XSL: Count = Count + 1 elayaraja.s XSLT 3 July 18th, 2008 03:21 AM
is there any in built function to count page count g.tamilselvan MySQL 1 February 15th, 2006 07:43 AM
Count, sum, count a value, return records CongoGrey Access 1 April 18th, 2005 02:25 PM
DTS Import ( Date string to Date field) gfowajuh SQL Server 2000 1 September 30th, 2003 06:28 AM
Convert String Date to Date for a SQL Query tdaustin Classic ASP Basics 4 July 7th, 2003 06:01 PM





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