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?
- http://localhost:80 is not working on running Apache server through UniServer ZeroXIII
- What are the differences in die() and exit() in PHP?
- Redirect old php link to wordpress link in .htaccess
- What is the meaning of ‘OFFSET’ => 1 (WordPress)
- WordPress custom thumbnail size
- Does the REST API (official) support custom post types?
- Search and Replace in database: How to replace data in SQL dump file on Windows?
- functions.php not adding css to website?
- Why is my get_post_meta always empty
- Count Title and Post Characters
- Inserting data into `post meta` table?
- fetch_feed: retrieve entries in the appearing order, not chronologically
- HTML table from shortcode with multiple parameters
- Programmatically create menu with custom link
- Get post thumbnail from subpages with a foreach loop
- WordPress takes too much time (100 seconds) to load – Front end and back end
- Dynamic Stylesheet loads but doesn’t finish
- How to fetch products with the price in a page on woocommerce using a form or live search with php
- How to show single category archive
- Replace shortcode in substring
- how to test for all children (including multilevel grand-childern) of page
- Dilemma of Populating all the categories in a drop down list
- Add item to top of menu using a filter in functions.php
- How to include seperate PHP file to class in callback function
- Password minimum length in personal subscription [closed]
- echo something inside a shortcode
- How to pass a variable into an add_filter() function?
- Shortcode for Listing Users from Meta Value?
- I can’t update my data through $wpdb
- Plugin not working & permalink erorr after upgrade to php 7x on Nginx
- The session works on the local server, but not on the web server
- Returning all values from foreach in function php [closed]
- Display css ONLY on most recent post of specific category?
- Deeper editing of index.php and single.php
- Create “new pages” within the admin section of plugin
- Using a string from a custom field within a link
- WordPress sitemap with Custom Post Types
- search.php to search only the post title
- portfolio site – about this site section – is it safe to post some code
- Combine change Email WordPress and woocommerce emails template
- When I click for the redirect link it is showing the content of index.php instead of single_assignment_page.php
- Non-blocking file_put_contents in function.php
- Published custom posts missing
- get_option return incorrect values
- media-uploader insert into post is not inserting
- private functions in plugins
- Load Meta box value into div AJAX [duplicate]
- Reading CSV values and showing them in PHP
- Retrieve Array from within Array [closed]
- How to change and edit users according to the extension in the URL
- How to add a static image inbetween the product tiles on main shoppage woocommerce?
- Custom CPT – Programmatically create categories to assign CPT when a new one is created
- Fatal Error: Uncaught ArgumentCountError: Too few arguments to function – on logout of wordpress dashboard
- Gulp dev environment set up for WordPress theme development
- Woocommerce, via php snippet: How to get product price and divide it by a number from an attribute, and then display the new price via php/html?