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
  1. Home
  2. Web Development
  3. ASP.NET
  4. Urgent

Urgent

Scheduled Pinned Locked Moved ASP.NET
csharpasp-net
3 Posts 3 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.
  • J Offline
    J Offline
    jamesmani2k5
    wrote on last edited by
    #1

    This is the Data i have Time interval = 30 min starting Time = 9:30 am End Time = 9:30 pm I have to get the Time intervals as follows 9:30 am to 10:00 am 10:00 am to 10:30 am 10:30 am to 11:00 am . . . .9:00 pm to 9:30 pm How can v get this in asp.net

    thank u

    S G 2 Replies Last reply
    0
    • J jamesmani2k5

      This is the Data i have Time interval = 30 min starting Time = 9:30 am End Time = 9:30 pm I have to get the Time intervals as follows 9:30 am to 10:00 am 10:00 am to 10:30 am 10:30 am to 11:00 am . . . .9:00 pm to 9:30 pm How can v get this in asp.net

      thank u

      S Offline
      S Offline
      Sathesh Sakthivel
      wrote on last edited by
      #2

      manikandan_be2005 wrote:

      Time interval = 30 min starting Time = 9:30 am End Time = 9:30 pm

      There is no time interval. If you want to get the time interval for 30 minutes go for javascript

      Regards, Satips.

      1 Reply Last reply
      0
      • J jamesmani2k5

        This is the Data i have Time interval = 30 min starting Time = 9:30 am End Time = 9:30 pm I have to get the Time intervals as follows 9:30 am to 10:00 am 10:00 am to 10:30 am 10:30 am to 11:00 am . . . .9:00 pm to 9:30 pm How can v get this in asp.net

        thank u

        G Offline
        G Offline
        Guffa
        wrote on last edited by
        #3

        Create TimeSpan values for the values, then you can simply do arithmetic with them. Example:

        TimeSpan start = new TimeSpane(9, 30, 0);
        TimeSpan stop = new TimeSpan(21, 30, 0);
        TimeSpan interval = new TimeSpan(0, 30, 0);

        for (TimeSpan s = start; s <= stop; s += interval) {
        Console.WriteLine(s.ToString());
        }

        --- single minded; short sighted; long gone;

        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