My wordpress plugin features a custom content textarea and that i want add exactly the same schedule feature that wordpress posts have.

Can there be some easy procedure to get it done?

enter image description here

HTML:

<div class="misc-pub-section curtime misc-pub-section-last">
    <?php
    $datef = __('M j, Y @ G:i');
    $stamp = __('Publish <b>immediately</b>');
    $date = date_i18n($datef, strtotime(current_time('mysql')));
    ?>                              
    <span id="timestamp"><?php printf($stamp, $date); ?></span>
    <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php _e('Edit') ?></a>
    <div id="timestampdiv" class="hide-if-js"><?php touch_time(0, 0, 5); ?></div>
</div>

PHP:

add_action('admin_print_scripts', 'header_scripts');

function header_scripts()
{
    wp_enqueue_script('nomikos_my_plugin_js_comment', site_url('wp-admin/js/comment.js'));
}