change the data format

Home Forums Legacy Support Support queries How-to & Troubleshooting change the data format

Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #18859
    sangsanguniv
    Spectator
    Can I change the data format to d-m-Y (ex. 25-1-2016)?  
    #18951
    H.K. Latiyan
    Participant
    Please share the code that you used, to add start and end date in course detail column.
    #19099
    sangsanguniv
    Spectator
    I am using the wplms theme. The default is set to the Y-m-d. Any file and any place should you fix?
    #19163
    H.K. Latiyan
    Participant
    By default we don't show the end date in course details. So I was asking about the code that you used to show the end date in course details, so that I can modify it accordingly. Nevermind, use this code instead: add_filter('wplms_course_details_widget','hk_custom_wplms_course_details_widget'); function hk_custom_wplms_course_details_widget($course_details){   global $post;   $end_date=get_post_meta($post->ID,'vibe_end_date',true);   if(isset($end_date))     $course_details['end_date']='<li>END DATE : '.date_i18n( get_option( 'date_format' ), strtotime($end_date)).'</li>';   return $course_details; } After using this code just go to settings->general->Date Format: and choose the appropriate date format that you want.  
    #43738
    Platon84
    Spectator
    How we have to do for start date?
    #43893
    H.K. Latiyan
    Participant
    #50266
    Platon84
    Spectator
    where is the file for change the date format?
    #50336
    H.K. Latiyan
    Participant
    To change the date format it is in settings->general->date format.
Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘change the data format’ is closed to new replies.