473,467 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Find Weeknumber for a Given Date

18 New Member
Hai Buddies,
In my data, i have starting date from jan 25th 2007 to june 2008. seems more than 1 year.
I wanted to put week number for each of this week starting like week1 , week2.., Now i got confused after 52 weeks, it will be week53 not week1 again.
Could any1 help me to find a good idea for me
Apr 22 '09 #1
1 3738
JosAH
11,448 Recognized Expert MVP
@svpriyan
Have you tried the get(Calendar.WEEK_OF_YEAR) method in the Calendar class? It handles all the nitty-gritty details.

kind regards,

Jos
Apr 22 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: MONO | last post by:
Hello! I´m trying to get the weeknumber fom a given date but at some dates will return the wrong weeknumber. WeekNumber = DatePart("ww", TodayAsDate, vbMonday, vbFirstFourDays) like...
2
by: Matt | last post by:
Given a date, how to find the beginning date and ending date of that week please advise!
2
by: jsfromynr | last post by:
Hi all, I have two tables CREATE TABLE ( NOT NULL , NULL , -- CURRENT DESIGNATION OF EMPLOYEE NOT NULL ) ON GO
4
by: perryclisbee via AccessMonster.com | last post by:
I have dates of service for several people that range all over each month. ie: patient had dates of service of: 7/3/2006, 7/24/2006 and 7/25/2006. I need to create a new field via a query that...
1
by: GoDogGo | last post by:
I need code to find next Tuesdays date. I have started with this: TuesdaysDate = DateAdd("d", vbTuesday - Weekday(Date), Date) However if today is Wednesday it returns yesterdays date. I...
4
by: JulioL | last post by:
I have a table in the following format: ID,EmployeeNumber,StartDate,EndDate 234332,205,2/1/2007,7/1/2007 239053,203,2/1/2007,NULL 295382,204,4/29/2007,NULL 288392,205,6/23/2007,NULL
1
by: oyis | last post by:
Hi, I'm looking for a function,which finds week number of given date. I found this method before,but I can't find now... Please help me...
3
Inbaraj
by: Inbaraj | last post by:
Hi... I have a Table in that i have inserted the DATE as VARCHAR now in that i Want to get the Max Date. I am new to MySQL Plz help me how to find the max date. with regard Inbaraj.D
5
by: SSG001 | last post by:
I have date in the format 200901(YYYYMM FORMAT) now I want to find the end date in the format(yyyy-mm-dd)
1
by: abdutasleem357 | last post by:
i want to know the query in oracle for, whether the given date is present or available in between two dates(startdate, enddate)
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.