Click here to Skip to main content
15,394,358 members
Home / Discussions / C#
   

C#

 
GeneralRe: force ToString() override in Deriv classed (already having a Base class) Pin
Keith Barrow8-Mar-10 4:13
professionalKeith Barrow8-Mar-10 4:13 
GeneralRe: force ToString() override in Deriv classed (already having a Base class) Pin
Not Active8-Mar-10 4:20
mentorNot Active8-Mar-10 4:20 
GeneralRe: force ToString() override in Deriv classed (already having a Base class) Pin
George Nistor8-Mar-10 6:49
MemberGeorge Nistor8-Mar-10 6:49 
GeneralRe: force ToString() override in Deriv classed (already having a Base class) Pin
Keith Barrow8-Mar-10 6:58
professionalKeith Barrow8-Mar-10 6:58 
GeneralRe: force ToString() override in Deriv classed (already having a Base class) Pin
George Nistor8-Mar-10 7:26
MemberGeorge Nistor8-Mar-10 7:26 
GeneralRe: force ToString() override in Deriv classed (already having a Base class) Pin
George Nistor8-Mar-10 7:34
MemberGeorge Nistor8-Mar-10 7:34 
AnswerRe: force ToString() override in Deriv classed (already having a Base class) Pin
PIEBALDconsult8-Mar-10 6:57
professionalPIEBALDconsult8-Mar-10 6:57 
QuestionReturn Week Number of the Current Month Pin
codeproject_Tarun8-Mar-10 3:32
Membercodeproject_Tarun8-Mar-10 3:32 
Hi Team,
Required functionality is to get the return week number of a given date.
Supposed
8th march 2010 is the given date then it should return "2" as 2nd week.I have implemented a below method which return week number of the year, whereas requirement is return week no of the current month.
Could any body help me out from this scenario.


public static int GetWeekNumber(DateTime dtPassed)
{   
 CultureInfo ciCurr = CultureInfo.CurrentCulture;    
int weekNum = ciCurr.Calendar.GetWeekOfYear(dtPassed, CalendarWeekRule.FirstFourDayWeek  , DayOfWeek.Monday); 

 return weekNum;
}


Tarun Singh. Wink | ;)
Thanks in Advance.
Regards
Tarun Singh
Sr. Software Engineer.
mailto:tksingh@zenta.com

AnswerRe: Return Week Number of the Current Month Pin
kevinnicol8-Mar-10 3:46
Memberkevinnicol8-Mar-10 3:46 
AnswerCross-post Pin
Kristian Sixhøj8-Mar-10 4:02
MemberKristian Sixhøj8-Mar-10 4:02 
QuestionRegarding deployment of windows service Pin
Håkan Axheim8-Mar-10 2:37
MemberHåkan Axheim8-Mar-10 2:37 
GeneralRe: Regarding deployment of windows service Pin
Håkan Axheim8-Mar-10 4:04
MemberHåkan Axheim8-Mar-10 4:04 
GeneralRe: Regarding deployment of windows service Pin
Håkan Axheim8-Mar-10 9:30
MemberHåkan Axheim8-Mar-10 9:30 
QuestionSessionTimeOut Problem Pin
shaina22318-Mar-10 2:22
Membershaina22318-Mar-10 2:22 
AnswerRe: SessionTimeOut Problem Pin
Sandeep Mewara8-Mar-10 9:57
mveSandeep Mewara8-Mar-10 9:57 
QuestionReading and Writing Reg_Binary Pin
sriharichowdary8-Mar-10 2:10
Membersriharichowdary8-Mar-10 2:10 
AnswerRe: Reading and Writing Reg_Binary Pin
Covean8-Mar-10 2:34
MemberCovean8-Mar-10 2:34 
AnswerRe: Reading and Writing Reg_Binary Pin
The Man from U.N.C.L.E.8-Mar-10 2:39
MemberThe Man from U.N.C.L.E.8-Mar-10 2:39 
QuestionProblem with Random class in C# Pin
yadlaprasad8-Mar-10 1:36
Memberyadlaprasad8-Mar-10 1:36 
AnswerRe: Problem with Random class in C# Pin
Covean8-Mar-10 1:45
MemberCovean8-Mar-10 1:45 
AnswerRe: Problem with Random class in C# Pin
Phil J Pearson8-Mar-10 1:47
MemberPhil J Pearson8-Mar-10 1:47 
AnswerRe: Problem with Random class in C# Pin
PIEBALDconsult8-Mar-10 3:48
professionalPIEBALDconsult8-Mar-10 3:48 
AnswerRe: Problem with Random class in C# Pin
Kythen8-Mar-10 9:45
MemberKythen8-Mar-10 9:45 
Questionhow to browse Pin
Guru Brahmam Chowdary8-Mar-10 0:58
MemberGuru Brahmam Chowdary8-Mar-10 0:58 
QuestionRe: how to browse Pin
Calla8-Mar-10 1:08
MemberCalla8-Mar-10 1:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.