Click here to Skip to main content
15,921,279 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: What is Sync block index ? Pin
Jon Rista6-Feb-09 9:32
Jon Rista6-Feb-09 9:32 
AnswerRe: What is Sync block index ? Pin
mailhacker28-Mar-10 23:51
mailhacker28-Mar-10 23:51 
QuestionGeneric exception handlers: clever idea or bad idea Pin
supercat94-Feb-09 11:59
supercat94-Feb-09 11:59 
AnswerRe: Generic exception handlers: clever idea or bad idea Pin
PIEBALDconsult5-Feb-09 15:38
mvePIEBALDconsult5-Feb-09 15:38 
GeneralRe: Generic exception handlers: clever idea or bad idea Pin
supercat95-Feb-09 18:55
supercat95-Feb-09 18:55 
GeneralRe: Generic exception handlers: clever idea or bad idea Pin
Gideon Engelberth6-Feb-09 3:22
Gideon Engelberth6-Feb-09 3:22 
GeneralRe: Generic exception handlers: clever idea or bad idea Pin
Mark Churchill8-Feb-09 14:44
Mark Churchill8-Feb-09 14:44 
AnswerRe: Generic exception handlers: clever idea or bad idea Pin
Vasudevan Deepak Kumar10-Feb-09 3:12
Vasudevan Deepak Kumar10-Feb-09 3:12 
QuestionHow to run a password protected SSIS package using VB.NET Pin
CodalcoholicNBrainy4-Feb-09 2:22
CodalcoholicNBrainy4-Feb-09 2:22 
Question[Message Deleted] Pin
imnotso#3-Feb-09 23:59
imnotso#3-Feb-09 23:59 
AnswerRe: WebUIValidation.js and .NET 2.0 upgrade. Pin
Not Active4-Feb-09 1:18
mentorNot Active4-Feb-09 1:18 
GeneralRe: WebUIValidation.js and .NET 2.0 upgrade. Pin
imnotso#4-Feb-09 1:20
imnotso#4-Feb-09 1:20 
GeneralRe: WebUIValidation.js and .NET 2.0 upgrade. Pin
Colin Angus Mackay5-Feb-09 12:35
Colin Angus Mackay5-Feb-09 12:35 
GeneralRe: WebUIValidation.js and .NET 2.0 upgrade. Pin
imnotso#5-Feb-09 22:57
imnotso#5-Feb-09 22:57 
GeneralRe: WebUIValidation.js and .NET 2.0 upgrade. Pin
Colin Angus Mackay5-Feb-09 23:23
Colin Angus Mackay5-Feb-09 23:23 
GeneralRe: WebUIValidation.js and .NET 2.0 upgrade. Pin
imnotso#5-Feb-09 23:35
imnotso#5-Feb-09 23:35 
QuestionThe specified module could not be found. (Exception from HRESULT: 0x8007007E [modified] Pin
tsanthosh3-Feb-09 22:42
tsanthosh3-Feb-09 22:42 
QuestionHi guys - is it possible to cast generic up the specific types hierarchy??? Pin
netguruMelb3-Feb-09 20:59
netguruMelb3-Feb-09 20:59 
AnswerRe: Hi guys - is it possible to cast generic up the specific types hierarchy??? Pin
Gideon Engelberth4-Feb-09 3:33
Gideon Engelberth4-Feb-09 3:33 
AnswerRe: Hi guys - is it possible to cast generic up the specific types hierarchy??? Pin
supercat94-Feb-09 5:17
supercat94-Feb-09 5:17 
QuestionFinding a given day or weekday x months from today Pin
nzmike3-Feb-09 14:34
nzmike3-Feb-09 14:34 
Hi all,

I've searched high and low and even found a few code project articles but nothing in C# and nothing that really does what I need which is to write some code to find a particular day in a month given an occurrence (which could be first, second, third, fourth or last) and a day type or name (which could be "weekday", "Monday", "Tuesday" ... "Sunday") and a number of months (1-12).

I'm doing this as part of replicating the Outlook calendar recurrence dialog so users of my app can select custom dates to run reports. So, for example, they might want to run one report on the first weekday of each month, another report on the third Wednesday of every two months and maybe another one on the last Friday of each 3 months.

My only starting position is that I have today's date which will always be the date the report has just run... from that I need to work out any combination of the above so I can then schedule the next occurrence of the report.

I've tried doing it with some sort of formula but nothing I've tried works so at present I'm adding the months to today's date, setting the day to 1 then simply looping though testing each day until I find what I want - but it's pretty clumsy to be honest and getting the last occurrence is pretty tricky too. Are there folks out there that have better math brains than me that would know how to do this in a formula?

All help and suggestions would be very welcome.

Mike
GeneralRe: Finding a given day or weekday x months from today Pin
Luc Pattyn3-Feb-09 16:13
sitebuilderLuc Pattyn3-Feb-09 16:13 
AnswerRe: Finding a given day or weekday x months from today Pin
Jon Rista3-Feb-09 16:19
Jon Rista3-Feb-09 16:19 
AnswerRe: Finding a given day or weekday x months from today Pin
nzmike3-Feb-09 16:25
nzmike3-Feb-09 16:25 
GeneralRe: Finding a given day or weekday x months from today Pin
Luc Pattyn3-Feb-09 17:30
sitebuilderLuc Pattyn3-Feb-09 17:30 

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.