# DATETIME data type MYSQL

**URL:** https://forum.kirupa.com/t/datetime-data-type-mysql/136345
**Category:** Uncategorized
**Created:** [February 3, 2005, 10:23pm UTC](https://forum.kirupa.com/t/datetime-data-type-mysql/136345 "2005-02-03T22:23:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![imagined](https://avatars.discourse-cdn.com/v4/letter/i/a87d85/32.png) [@imagined](https://forum.kirupa.com/u/imagined)
#### Post date: [February 3, 2005, 10:23pm UTC](https://forum.kirupa.com/t/datetime-data-type-mysql/136345/1 "2005-02-03T22:23:59Z")

</div>

On a table I have a created two rows that are DATETIME type.

On scripts I used to have, I used to use something like:

date=CURDATE()

to enter the date into the database. But now I want to enter both the date and the time in one single row using the DATETIME data type. How can I do that? :red:
