Support » Plugin: Date and Time Picker Field » unable to set datetime value

  • neha


    setting the datetimepicker value via functions.php and then trying to check with currentdate but the condition always fails.


    $ttxt='+'.$randnos.' days +'.$randhrs.' Hours +'.$randmin.' minutes +'.$randsec.' seconds';
    $newTime = date("d/m/Y H:m:s",strtotime($ttxt));


    $tdate=new DateTime();
    $mystring=date("d/m/Y H:m:s",strtotime($mystring));
    echo $mystring;
    if ($mystring>=$tdate){
    echo "yahoo";

    and it never passes the if condition

  • The topic ‘unable to set datetime value’ is closed to new replies.