You can use the date function:
date("Y-m-d H:i:s");
Related Posts:
- How do I get the current date and time in PHP?
- How to get current timestamp in string format in Java? “yyyy.MM.dd.HH.mm.ss”
- How to get the current time in Python
- Setting the Timezone for PHP in the php.ini file
- Difference between UTC and GMT
- Datetime strptime in python
- How to get the current date/time in Java [duplicate]
- Getting today’s date in YYYY-MM-DD in Python?
- What’s the difference between ISO 8601 and RFC 3339 Date Formats?
- How to get the current date/time in Java
- Add days to JavaScript Date
- How do I do a Date comparison in Javascript?
- Add days to JavaScript Date
- Converting string to Date and DateTime
- timestamp of time(0) at multiple places in a C++ program
- Finding the number of days between two dates
- Compare given date with today
- Convert datetime to Unix timestamp and convert it back in python
- Is there a difference between the UTC and Etc/UTC time zones?
- Converting between java.time.LocalDateTime and java.util.Date
- How do I get the day of week given a date?
- How to convert SQL Server’s timestamp column to datetime format
- Should I use the datetime or timestamp data type in MySQL?
- Object of class DateTime could not be converted to string
- Convert from MySQL datetime to another format with PHP
- Convert DateTime to String PHP
- Convert timestamp to date in Oracle SQL
- Adding hours to JavaScript Date object?
- How to get time difference in minutes in PHP
- Get current time in milliseconds in Python?
- Creating a range of dates in Python
- A non well formed numeric value encountered
- PHP: date function to get month of the current date
- create php live clock
- Customize Time Stamp
- display month in french in wordpress/php?
- How to get User Time Zone in WordPress?
- Function Reference/human time diff for future posts
- How to get movies by date
- current_time function incorrect in plugin and PHP, not in WordPress admin
- Time Stamp In A WordPress Post Title That Does Not Keep Refreshing
- Learndash: Customize user enroll time
- strtotime not working
- Can’t add to time? [closed]
- How do I output user_registered time in my correct timezone?
- Show Element at Certain Time in WordPress
- Display Current Time using shortcode
- Comments are not working on Custom Post Type
- FATAL ERROR , Sommerce Theme [closed]
- How I can give a php page a style from my theme
- how to get image url from meta value?
- New to wordpress. Need Help with templates [closed]
- Show wrapper divs if query has results, then loop the results [closed]
- WP and Laravel integration (Updated) [closed]
- True or False: Is an Apache error or PHP error the same as a WordPress error?
- How to create a loop where loop changes every post?
- How to create a loop that will display one post and stop?
- How make wp_nav() with my css?
- One folder to be accessible by one user
- Issues trying to add a href statment with PHP into a PHP Echo Statement [closed]
- Woocommerce linking variations
- Help with if/else loop [closed]
- Child-theme suddenly stopped working [closed]
- Set variable in javascript and using in my shortcode
- WordPress: code structure
- Twig+WordPress how to use array arguments inside a function?
- How to implement a custom sliding banner? [closed]
- metabox displaying on incorrect page
- I would like to alert message while another user is editing or update data in wordpress admin panel, what should i do?
- Header location [closed]
- Is there any way of not using my_init_method in the following code (that creates a custom post type)?
- Display ONLY ONE $term (Out of 4 terms) from a Custom Taxonomy and CPT
- how to loop through blog posts in php
- Saving User Input to PHP Variable
- Tittle of post instead of tittle of page in php
- It’s not showing full content for posts pages in wordpress “[…]” while customing some changes in the style.css file [closed]
- How do I convert a custom field to a php date format? [closed]
- TML Theme My Login Plugin
- Translate text for empty product
- JSON Object Value Show Undefine
- Create an if statement based on page_id
- Date is showing in unreadable format. How to convert to readable date?
- Require Credits Footer
- I’m not able to get access $wpdb in my php file in wordpress
- append special url end of my website urls
- wordpress jquery is not defined because the head tag is empty
- How to crop featured image in different sizes?
- How to find out the URL of enabled theme(s)?
- Submit cf7 form to cfdb as pdf/BLOB [closed]
- An automatic way to crop images of different sizes
- Javascript code not working – $ is not a function error
- Blog listing not showing dates for every post and arrow missing off image
- Show post like this image in my newssite [closed]
- Undefined variable notice [closed]
- How do I remove spammy links in WP theme footer?
- WordPress portfolio pagination on home page
- Pagination not working properly
- Detecting IP Address of someone using ‘copy’ function [closed]
- Display biography post for today’s birthday person
- php grabbing every post made?