Re: Calendar ?
- Posted by "Carl W." <euphoria at cyreksoft.yorks.com> Jul 30, 2003
- 444 views
Wolf wrote: > Given a date:, ie: > July 29, 2003... > is there a simple way to calculate the day of the week: ie: > ...it's Tuesday ! Junko Miura's day of week function is probably the way to go if all you want is that one function. (I searched on 'Junko week' in the archive and it came out top.) For overkill, there's my library (Rolf Schroeder already posted his datetime.e, so perhaps me posting mine is redundant; But I can't resist a plug :) ) and docs at http://www.cyreksoft.yorks.com/euphoria/ For those griping about the fact a function returns a day of week for an invalid date (like Feb. 30th) there's a validDayOfWeek() function that returns -1 when the date is invalid. Carl -- [ Carl R White == aka () = The Domain of Cyrek = ] [ Cyrek the Illogical /\ www.cyreksoft.yorks.com ]