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?
- “Valid CSRF Token Required” in Osticket After login?
- How to use data-saferedirecturl in a tag in PHP?
- How to update custom fields using the wp_insert_post() function?
- How to add some custom HTML to the edit posts page
- Add Useragent to the body class?
- How can I get an XML export of my 1K+ posts WordPress instance?
- How can I ‘reactivate’ .PHP files within a WP plugin that have been marked ‘inactive’?
- Dashboard Widget Form
- PHP code to call image Caption, Alternative Text, and Decription?
- How to rewrite URL with PHP variables with htaccess to a normal looking URL?
- Can’t get wp_insert_post to work
- Why not yield/iterable in posts interface?
- PHP Fatal error: Uncaught mysqli_sql_exception: Table doesn’t exist in wordpress/wp-includes/wp-db.php
- The response is not a valid JSON response, wordpress problems?
- Firing schema via code in functions.php doesn’t work
- Blog posts repeat
- Dot is not added at the end of href
- Creating a post from data returned from HTML form
- PHP conditional script issue
- My php code is not being executed
- working with term_relationships table
- How to show meta value code HTML after x paragraph
- Check class_exists before class definition / Doxygen problem
- How to Fix an Archive.php That Displays All Posts?
- Dynamically replicate custom metabox in custom post type
- random reason on refresh
- How to tell if a user has gone in and created a menu
- Change Query Arguments (filter) with jQuery/Ajax or PHP?
- WordPress Fresh Install Errors (Woocommerce specifically now)
- Tracking Visitor LatLng with WordPress using JS, PHP. How to put data which was extract using JS into DB
- how do i add custom widget woocommerce shop page with php
- How can I redefine WordPress wp-content directory programmatically?
- Trim Titles Only On Some Pages
- code that I can run, or a plug in to show what sql tables something pulls information from
- Automatic email message after manual user approval
- Return author name as a tag using get_author
- Move plugin upload folder from mywebsite.com/wp-content/uploads/pdfuploads to mywebsite.com/pdfs?
- How to pull date/time in french format for wordpress post?
- What is wrong with this shortcode? to include external php file in WordPress posts
- How to make sure, that only the selected post is changing?
- Crop an image after upload on custom account page
- Migrating a live WordPress website to a Local Server: why some elements of the website are missing?
- Store stripe info as user_meta
- Loop returns more items than exist?
- Category foreach Paging
- WP supersize not displaying when different languages flags are selected
- Host does not allow remote connection, so how do I transfer data to my WordPress site?
- I am extending Walker_Nav_Menu: How can I get the number of children elements of the current item?
- How to add homepage Widget?
- WordPress White Screen Error
- Keep users logged in Without Remember Me
- How to use js variable to php in wordpress functions.php
- Display total count of products in orders of a specific order status
- advanced custom fields: repeater field within conditional statement [closed]
- How to pass value to add_filter wpcf7_form_tag from another function?