/home/moonrcjl/public_html/wp/wp-content/plugins/pure-metafields/metaboxes/fields/datepicker.php
<?php
/**
 * Datepicker
 */
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
?>
<?php if(!isset($row_db_value)): ?>
<input 
    type="text" 
    class="tm-input tm-input-sm tm-datepicker-input" 
    id="<?php echo esc_attr($id); ?>" 
    name="<?php echo esc_attr($id); ?>" 
    value="<?php echo esc_html(tpmeta_field($id))?? esc_html($default)?? esc_html(date("D-M-Y")); ?>"
/>
<?php else: ?>
<input 
    type="text" 
    class="tm-input tm-input-sm tm-datepicker-input" 
    id="<?php echo esc_attr($id); ?>" 
    name="<?php echo esc_attr($id); ?>" 
    value="<?php echo esc_html($row_db_value); ?>"
/>
<?php endif; ?>