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. Automatically Determine Dates for Special Occasions

Automatically Determine Dates for Special Occasions

Scheduled Pinned Locked Moved Web Development
helptutorialquestion
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.
  • P Offline
    P Offline
    Peter Mayhew
    wrote on last edited by
    #1

    Right, to set the scene, I am creating a website for my partner to sell Floral Arrangements. Now when certain events crops up, i.e. Mothers Day, Fathers Day, Easter, etc, we would like a reminder to appear. No problem. The problem is, the dates for the events change each year, and can't think of a logical way in code to determine the date automatically, as Easter for example falls on a different date each year. Do any of you know of a way to calculate when Special Occasion dates occur each year? Any suggestions? --- Peter M

    F 1 Reply Last reply
    0
    • P Peter Mayhew

      Right, to set the scene, I am creating a website for my partner to sell Floral Arrangements. Now when certain events crops up, i.e. Mothers Day, Fathers Day, Easter, etc, we would like a reminder to appear. No problem. The problem is, the dates for the events change each year, and can't think of a logical way in code to determine the date automatically, as Easter for example falls on a different date each year. Do any of you know of a way to calculate when Special Occasion dates occur each year? Any suggestions? --- Peter M

      F Offline
      F Offline
      f64
      wrote on last edited by
      #2

      Hi First you should make a list of all the special days you are interested in, and then do a Google search on how to calculate when is each one. For example, Easter, is the Sunday following the Paschal Full Moon (PFM) date for the year; Mother's Day is always the second Sunday of May and so on. There is a way to calculate each an every one of them. Good luck, Fabian

      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