Jump to content

Help : days algorithm

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
rivci

rivci

    Newbie

  • Members
  • PipPip
  • 10 posts
Did anyone know how to make this algorithm :
Input : date, month, year
Output : day (eg. Sunday, monday, etc)

I solve this problem by using the Date class....
But I just want to know what is the details algorithm to do this....

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Day of week algorithm
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
rivci

rivci

    Newbie

  • Members
  • PipPip
  • 10 posts
Yup, thanx.... that's great
but I got a new problem here, I was just too stupid to implement this algorithm into java ToT
Would you like to help me, again ^^ plizzz...

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
How far did you get?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
rivci

rivci

    Newbie

  • Members
  • PipPip
  • 10 posts
Ummm.... finally I did it :irritated:
Thanx for the algorithm, it such a cool one :D