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 1060135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:16:50+00:00 2026-05-16T18:16:50+00:00

I want to create a timesheet application where I need an application that will

  • 0

I want to create a timesheet application where I need an application that will collect data from the logged in user regarding the number of hours they worked on a specific date.

The user will be required to log into an application which will capture their credentials and employee ID.

Users will be presented with a form that will list the days of the week and a corresponding textbox for entering their hours (decimal). The following table is my vision of the entry form (basic).

Mon Tue Wed Thu Fri Sat Sun
9/6 9/7 9/8 9/9 9/10 9/11 9/12
0.00 0.00 0.00 0.00 0.00 0.00 0.00

I will need to store the information in a table where I will need to store:
Entry Date (DateTime) The date worked
EmpID (Int) The Employee’s ID
RptHours (Decimal) The number of hours worked

I am attempting to design the process that so that it will be streamlined and easy to interface. The current process will be:
1. Read table for reported hours and dates for the current logged in user
2. Display the dates for the current week
3. Display the hours worked (for the days that have been reported to date).
4. Allow the user to enter/edit data (textbox)
5. Save the data back to the table.

This data structure sticks out that it should be a class however my problem is that I am uncertain how to design a class which will allow me to access the information for all seven days of the week. I know that I can perform this using an array however I think that implementing a class will be more professional as well as a chance to learn.

I am fairly certain that I would use a collection (like List) however I am not seeing the solution where I can access and modify dates & times for a time period (7 days).

I am using C#. Can anyone give me a push (kick in the pants) in the right direction? I will appreciate any help and insight.

Thanks
Ray

  • 1 1 Answer
  • 1 View
  • 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-16T18:16:50+00:00Added an answer on May 16, 2026 at 6:16 pm

    I would have a class for Employee which has information like their employee ID, name, etc. Then I would have a WorkingInfo (or similar) class which has the following properties: Employee, Date, StartTime, EndTime. You then have a List<WorkingInfo> collection.

    To calculate how long the employee worked, you would use the TimeSpan class to get the difference between your Start and EndTime properties.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want create a custom json data from the mssql 2008 results so that
I want create wordpress website into which I want create user management... That means
I want to create a Silverlight app to extract and manipulate data from an
I want create a tarball that when extracted the file(s) will be placed at
I want create texture atlas(matrix of images) from multiple images.Is their any applescript that
i want create a counter that retrieve the number of month, day, hour, minute
I want create Word document from another Word document, but I need replace some
I want create constructor that will take one or more integers and save it
I want create a android application and i need to connect to a webservice
I want create a web application that display a list of items. Suppose I

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.