vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Two date formats (https://vborg.vbsupport.ru/showthread.php?t=28111)

markrt 09-15-2001 05:50 AM

Hi

Is it possible to have the date format displayed differently for users in other country's.

I need the users to be able to pick what format they want displayed, something like US format or the UK format to be checked in the "User settings"

Thanks
Mark

Prolex 09-15-2001 06:22 AM

This feature is already implemented in vbulletin 2.0.3.

under USERCP > Edit Options

Admin 09-15-2001 07:11 AM

Actually I think he wants different date formats for each user, so a user from Israel could have day-month-year (like we use here).

markrt 09-15-2001 11:45 AM

Hi

As FireFly said:
I need different date formats for each user, so a user from the UK can have have "DD-MM-YY" and a user from the US can have "MM-DD-YY"

If there isn’t a hack for this perhaps I can make different styles for each Country? But where do I change the Date $’s.

Thanks
Mark

Admin 09-15-2001 01:19 PM

Date and time formats can't be set per-style.
You can only change them in the contorl panel.

But this is a great idea, I'm sure someone will make it (not too hard at all).

merk 09-15-2001 02:06 PM

I dont have a use for this hack, but if i get bored, im sure ill hack around for you :)

Good luck!

Admin 09-15-2001 05:29 PM

Ok, this is very very very easy to do.

Please give me a full list of date formats, and if you want also time formats to use.
I'll get it done in no time. :)

ozone2000 09-15-2001 06:09 PM

date formats:
*=the 4 lettered word means that it should be shown in full length, that is if its YYYY, its 2001, but if its MMMM, it should be September, the same goes for DDDD, then it should show Saturday... etc, if you know what i mean.
---------------
The Month-Day-Year format:
---------------
MM.DD.YY
MMMM.DD.YY*
MMMM.DDDD.YY*
MMMM.DDDD.YYYY*
MM,DD,YY
MMMM,DD,YY*
MMMM,DDDD,YY*
MMMM,DDDD,YYYY*
MM-DD-YY
MMMM-DD-YY*
MMMM-DDDD-YY*
MMMM-DDDD-YYYY*
MM/DD/YY
MMMM/DD/YY*
MMMM/DDDD/YY*
MMMM/DDDD/YYYY*
MMDDYY
MMMMDDYY*
MMMMDDDDYY*
MMMMDDDDYYYY*
---------------
The Day-Month-Year format:
---------------
DD.MM.YY
DD.MMMM.YY*
DDDD.MMMM.YY*
DDDD.MMMM.YYYY*
DD,MM,YY
DD,MMMM,YY*
DDDD,MMMM,YY*
DDDD,MMMM,YYYY*
DD-MM-YY
DD-MMMM-YY*
DDDD-MMMM-YY*
DDDD-MMMM-YYYY*
DD/MM/YY
DD/MMMM/YY*
DDDD/MMMM/YY*
DDDD/MMMM/YYYY*
DDMMYY
DDMMMMYY*
DDDDMMMMYY*
DDDDMMMMYYYY*
---------------
The Year-Month-Day format:
---------------
YY.MM.DD
YY.MMMM.DD*
YY.MMMM.DDDD*
YYYY.MMMM.DDDD*
YY,MM,DD
YY,MMMM,DD*
YY,MMMM,DDDD*
YYYY,MMMM,DDDD*
YY-MM-DD
YY-MMMM-DD*
YY-MMMM-DDDD*
YYYY-MMMM-DDDD*
YY/MM/DD
YY/MMMM/DD*
YY/MMMM/DDDD*
YYYY/MMMM/DDDD*
MMDDYY
YYMMMMDD*
YYMMMMDDDD*
YYYYMMMMDDDD*
---------------




... i dont know if there is any other date formats, but these are the ones i know!

Admin 09-15-2001 06:12 PM

Thank you VERY much! :)

Admin 09-15-2001 06:18 PM

Actually there are a lot more:
http://www.php.net/manual/en/function.date.php

You can use the day name, month name, etc.
I'll have to research more. :)


All times are GMT. The time now is 09:54 AM.

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.01047 seconds
  • Memory Usage 1,737KB
  • 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
  • (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
  • (10)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