Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / October 2004

Tip: Looking for answers? Try searching our database.

Determing a quarter in a financial year

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RD - 31 Oct 2004 16:39 GMT
Say Company's financial year starts October First and say we are now March
17th. How do you determine which quarter of the Financial year - not the
actual year - March 17th is in.

Thanks for any help,

Bob
Cor Ligthert - 31 Oct 2004 17:12 GMT
RD,

You mean something as this?
\\\
Dim theDate As DateTime = New DateTime(2005, 3, 17)
Dim quarter As Integer = (theDate.Month + 2) \ 3
If quarter = 4 Then
       quarter = 1
Else
       quarter += 1
End If
///

I hope this is something you wanted/

Cor

"RD" <nospam@nospam.net>
.
> Say Company's financial year starts October First and say we are now March
> 17th. How do you determine which quarter of the Financial year - not the
[quoted text clipped - 3 lines]
>
> Bob
RD - 31 Oct 2004 19:24 GMT
Thanks Cor but I must be missing something.
Your bit of code does not seem to take into consideration that the first
quarter of the financial year starts on October First not January First , if
it does I do not see how? If it does would you mind explaining it to me?

Thanks
> RD,
>
[quoted text clipped - 22 lines]
> >
> > Bob
Cor Ligthert - 31 Oct 2004 19:54 GMT
RD,

Did you try it?
The 1st of October gives at me quarter = 1
The 1st of January gives at me quarter  = 2
The 1st of April gives at me quarter = 3
The 1st of July gives at me quarter = 4

Where did I understood you wrong?

Cor

"RD" <nospam@nospam.net>
..
> Thanks Cor but I must be missing something.
> Your bit of code does not seem to take into consideration that the first
[quoted text clipped - 31 lines]
>> >
>> > Bob

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.