Created
September 3, 2019 03:59
-
-
Save hmbashar/f8cf6fa045e402c643c16d707d4f36b4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Timestamp Convert from date picker | |
$remove_slash_date = explode('/', dd/m/yy); | |
$promo_timestamp = mktime(0, 0, 0, (int)$remove_slash_date[0], (int)$remove_slash_date[1], (int)$remove_slash_date[2]); | |
// Current timestamp from wordpress time admin panel; | |
$current_wp_date = current_time('timestamp'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment