# PHP/MySQL Date

**URL:** <https://forum.kirupa.com/t/php-mysql-date/208262>\
**Category:** programming\
**Created:** [November 27, 2006, 2:41am UTC](https://forum.kirupa.com/t/php-mysql-date/208262 "2006-11-27T02:41:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nobody](https://avatars.discourse-cdn.com/v4/letter/n/94ad74/32.png) [@nobody](https://forum.kirupa.com/u/nobody)\
**Post date:** [November 27, 2006, 2:41am UTC](https://forum.kirupa.com/t/php-mysql-date/208262/1 "2006-11-27T02:41:15Z")

</div>

So I’m pulling a date from my MySQL database which is formatted as a date. It’s in typical date format (2006-11-26).

So when I pull it from MySQL with PHP as such

```php
date("M j, y",$ridearray['date'])

```

I get a “Notice: A non well formed numeric value encountered” error.

I guess the issue is that PHP wants an integer (epoch time deal), but I don’t have any idea how to convert that out.
