Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6942279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:59:40+00:00 2026-05-27T12:59:40+00:00

At my work, we are on the 9/80 plan where we get every other

  • 0

At my work, we are on the 9/80 plan where we get every other Friday off. We’ve got a small program that shows a DevExpress.Scheduler control and I’d like to color our “Friday’s off” a different color. What I need to know is how do I know if a date is one of our Friday’s off? The Friday’s off will always be every other week (in other words, we don’t skip a week due to a holiday or something like that). I have the date of our First Friday off of the year, so I think I can use that somehow…I can also get the date from the scheduler as it’s drawn so I have something to compare to.

DateTime dtFirstFridayOff = new DateTime(2011, 1, 1);
DateTime dtCellDate = Convert.ToDateTime(e.Cell.Value);

Now I’m a bit lost as to how to check if dtCellDate is a Friday off.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T12:59:41+00:00Added an answer on May 27, 2026 at 12:59 pm
        public static bool IsDateMultipleDays(DateTime originalDate, int numberOfDays, DateTime potentialDate)
        {
            var original = originalDate.Date; // to make sure that it doesn't have a time portion
            var potential = potentialDate.Date;
            var difference = potential - original;
            return (int)difference.TotalDays % numberOfDays == 0;
        }
    

    Then you’d call it like this:

    IsDateMultipleDays(dtFirstFridayOff, 14, dtCellDate)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I plan on writing a Java 3D game that will work both on PC
I am looking to have a portable debug class since i plan to work
I've been tasked at work to write a detailed engineering plan for a logistics
I'm writing a portfolio site and I plan to annotate work with accompanying code,
I am working on upgrading our site to work in different languages. My plan
Work on this small test application to learn threading/locking. I have the following code,
Currently we have a batch driven process at work which runs every 15 mins
I've just realized my plan won't work with an earlier question . So I
The background story: I work for a company that develops and manufactures a commercial
I am trying to get the inner active add Api to work with QML.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.