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

.NET (Core and Framework)

 
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 
GeneralRe: Finding a given day or weekday x months from today Pin
Jon Rista4-Feb-09 6:25
Jon Rista4-Feb-09 6:25 
AnswerRe: Finding a given day or weekday x months from today Pin
cmk3-Feb-09 20:45
cmk3-Feb-09 20:45 
QuestionSmart Card Pin
Mohd Atiq3-Feb-09 1:38
Mohd Atiq3-Feb-09 1:38 
AnswerRe: Smart Card Pin
annathor5-Feb-09 1:52
annathor5-Feb-09 1:52 
Questionbook Pin
welcan3-Feb-09 1:02
welcan3-Feb-09 1:02 
AnswerRe: book Pin
EliottA3-Feb-09 7:10
EliottA3-Feb-09 7:10 
AnswerRe: book Pin
vaghelabhavesh3-Feb-09 8:38
vaghelabhavesh3-Feb-09 8:38 
QuestionOracle Transactions Handling in ASP .NET Pin
summon_192-Feb-09 23:04
summon_192-Feb-09 23:04 
AnswerRe: Oracle Transactions Handling in ASP .NET Pin
Wendelius3-Feb-09 7:54
mentorWendelius3-Feb-09 7:54 
QuestionSerialization of List<> and Remoting [modified] Pin
Andez20042-Feb-09 22:00
Andez20042-Feb-09 22:00 
QuestionCAS policy how to assign to a specific app Pin
Dan Neely2-Feb-09 8:00
Dan Neely2-Feb-09 8:00 
AnswerRe: CAS policy how to assign to a specific app Pin
Jon Rista3-Feb-09 10:08
Jon Rista3-Feb-09 10:08 
GeneralRe: CAS policy how to assign to a specific app Pin
Dan Neely3-Feb-09 10:21
Dan Neely3-Feb-09 10:21 

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.