You can use the date function:
date("Y-m-d H:i:s");
More Related Contents:
- Display which day it is? sunday or monday “php coding”? [closed]
- Subtracting a certain number of hours, days, months or years from date
- Timezone conversion in php
- PHP How to find the time elapsed since a date time? [duplicate]
- PHP: producing relative date/time from timestamps
- MySQL datetime fields and daylight savings time — how do I reference the “extra” hour?
- Accessing dates in PHP beyond 2038
- How to generate random date between two dates using php?
- Check whether the string is a unix timestamp
- php: convert milliseconds to date
- Subtract time in PHP
- Using MySQL’s TIMESTAMP vs storing timestamps directly
- Php date() Date and time is stuck [closed]
- Converting timestamp to time ago in PHP e.g 1 day ago, 2 days ago…
- How to get time difference in minutes in PHP
- What are the “standard” timezone abbreviations?
- Convert from MySQL datetime to another format with PHP
- PHP Sort a multidimensional array by element containing Y-m-d H:i:s date
- Find difference between two datetimes and format at Y-m-d H:i:s
- Convert timestamp in milliseconds to string formatted time in Java
- PHP DateTime::modify adding and subtracting months
- How to list all months between two dates
- get UTC time in PHP
- How to check if time is between two times in PHP [duplicate]
- Set timezone in PHP and MySQL
- php strtotime “last monday” if today is monday?
- How to compare two time in PHP
- mysql – INSERT date range into date columns IF dates don’t overlap with existing ones
- Get timestamp of today and yesterday in php
- adding two time values of similar formats using php