You are here: Re: MySQL Date Question......help please. « PHP Programming Language « IT news, forums, messages
Re: MySQL Date Question......help please.

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!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация