Posted by Pedro Graca on 01/10/06 01:17
amerar@iwc.net wrote:
> I want to convert a date......
>
>
> I am given the Day of the Week, plus the Hour and Minute. I want to
> convert that into a YYYY-MM-DD HH:MI format so I can store it and sort
> it in the database.
>
>
> The only think I know is the beginning of the week date
Ok, that's enough :)
If the Day of the Week you're given is Monday add 0 to the beginning of
the week date; if it's Tuesday, add 1; Wednesday, add 2; ...
Adjust at will if your week doesn't start on Mondays.
--
Mail to my "From:" address is readable by all at http://www.dodgeit.com/
== ** ## !! ------------------------------------------------ !! ## ** ==
TEXT-ONLY mail to the whole "Reply-To:" address ("My Name" <my@address>)
may bypass my spam filter. If it does, I may reply from another address!
[Back to original message]
|