vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Formatting birthdate question (https://vborg.vbsupport.ru/showthread.php?t=67072)

Boofo 07-12-2004 09:41 PM

Quote:

Originally Posted by Dark_Wizard
Oops...change it to this:
PHP Code:

$bbuserinfo['birthday'] = date("F j, Y"mktime(000$bday[0], $bday[1], 1992), falsetruefalse); 


I tried that one after the first one didn't work. I get the same error with this, too. ;)

Dark_Wizard 07-13-2004 10:46 PM

Use this:

PHP Code:

$format1 'F j, Y';
$format2 'F j';
$bday explode('-'$bbuserinfo['birthday']); 
    if (
date('Y') > $bday[2] AND $bday[2] > 1901 AND $bday[2] != '0000'
    { 
        require_once(
'./includes/functions_misc.php'); 
        
$format1 mktimefix($format1$bday[2]); 
        
$bbuserinfo['birthday'] = vbdate($format1mktime(000$bday[0], $bday[1], 1992), falsetruefalse); 
    } 
    else 
    { 
        
$bbuserinfo['birthday'] = vbdate($format2mktime(000$bday[0], $bday[1], 1992), falsetruefalse); 
    } 
$birthdate $bbuserinfo['birthday']; 



All times are GMT. The time now is 02:48 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01118 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete