Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Weekly Reports

Weekly Reports

Scheduled Pinned Locked Moved C#
question
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tim DuBois
    wrote on last edited by
    #1

    I'm having massive difficulty trying to print weekly reports in the following way: I have a report generated for a month, May for aregument sake. I want the data in the report broken up into 4/5 weeks, not simply flowing though the month. In other words: Week 1: data data data Week 2: data data data Week 3: data data data Week 4: data data data Each set of data has a full DateTime variable with it. I've managed to get a week number from each date - but they're in relation to the year, not the month. Any ideas?

    K 1 Reply Last reply
    0
    • T Tim DuBois

      I'm having massive difficulty trying to print weekly reports in the following way: I have a report generated for a month, May for aregument sake. I want the data in the report broken up into 4/5 weeks, not simply flowing though the month. In other words: Week 1: data data data Week 2: data data data Week 3: data data data Week 4: data data data Each set of data has a full DateTime variable with it. I've managed to get a week number from each date - but they're in relation to the year, not the month. Any ideas?

      K Offline
      K Offline
      KSEI
      wrote on last edited by
      #2

      I think you can just substract the week number u got, with the last month week number. This is a simple example (mm/dd/yy is the date format): select convert(numeric(3,0), datename(ww, '02/24/2004')) - convert(numeric(3,0), datename(ww, '01/31/2004')) The query will give u the week number relate to the month for 24th Feb 2004. Hope this can help u, :)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups