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. Database & SysAdmin
  3. Database
  4. Get hour from date

Get hour from date

Scheduled Pinned Locked Moved Database
question
3 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.
  • P Offline
    P Offline
    papa80
    wrote on last edited by
    #1

    Hi How can i extract hour from datatime varable??? Good bye Best Regards N.Nikolov

    when i want to read something good just seat and type it

    V 1 Reply Last reply
    0
    • P papa80

      Hi How can i extract hour from datatime varable??? Good bye Best Regards N.Nikolov

      when i want to read something good just seat and type it

      V Offline
      V Offline
      vicky00000
      wrote on last edited by
      #2

      This is what i know you can use this code to extract hour from datetime variable COleDateTime oOleDateTime(DateTimeVariable); int iDay = oOleDateTime.GetDay(); int iMonth = oOleDateTime.GetMonth(); int iYear = oOleDateTime.GetYear(); int iHour = oOleDateTime.GetHour(); int iMinute = oOleDateTime.GetMinute(); int iSeconds = oOleDateTime.GetSecond();

      P 1 Reply Last reply
      0
      • V vicky00000

        This is what i know you can use this code to extract hour from datetime variable COleDateTime oOleDateTime(DateTimeVariable); int iDay = oOleDateTime.GetDay(); int iMonth = oOleDateTime.GetMonth(); int iYear = oOleDateTime.GetYear(); int iHour = oOleDateTime.GetHour(); int iMinute = oOleDateTime.GetMinute(); int iSeconds = oOleDateTime.GetSecond();

        P Offline
        P Offline
        papa80
        wrote on last edited by
        #3

        Thank's a lot

        when i want to read something good just seat and type it

        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