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. Other Discussions
  3. The Back Room
  4. I don't know how to caculate a calendar...

I don't know how to caculate a calendar...

Scheduled Pinned Locked Moved The Back Room
comalgorithmshelptutorial
2 Posts 1 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I need a source code to calculate about date. But the problem is: I have not got permission to use Date/Time System Function. So, I must write my own algorithm to cal. date. Input is: One date (ie: Thu, 1-1-0000) And output is: If user want to know the date: 20/4/2002 they can choose and know it is Friday. Thanks for your helping newcinc ----------------- Pls contact to me if you have some ideals: newcinc@storm-eyes.com - Website: www.storm-eyes.com ------------------ www.storm-eyes.com

    L 1 Reply Last reply
    0
    • L Lost User

      I need a source code to calculate about date. But the problem is: I have not got permission to use Date/Time System Function. So, I must write my own algorithm to cal. date. Input is: One date (ie: Thu, 1-1-0000) And output is: If user want to know the date: 20/4/2002 they can choose and know it is Friday. Thanks for your helping newcinc ----------------- Pls contact to me if you have some ideals: newcinc@storm-eyes.com - Website: www.storm-eyes.com ------------------ www.storm-eyes.com

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Try the following: char* CalDate(char* InDate){ if (*InDate == "20/4/2002") return ("Friday"); return ("The date should be 20/4/2002"); } :-O Sorry about that :-O :( but this is :laugh: :(( Rant:mad:: and Rave:mad: Forum :(( :laugh: :mad: :laugh: :laugh: :laugh: :laugh: :laugh: :laugh: :laugh: :)

      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