can somebody send me a code that can convert the date for the current day into year-month-day only. i don't want inclusion of hours/minutes/seconds stuffs. this will make it easy to tally with MYSQL's y-m-d format. am using codeIgniter 1.7.1


--sorry for my bad english---i speak afrikaan--

$mydate = date('Y-m-d');

Hope this helps.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.