Not logged in. · Lost password · Register
Forum: General discussion RSS
Regional Settings
Avatar
Azimuth #1
Member since Jan 2003 · 427 posts · Location: Chicago, Illinois - USA
Group memberships: Members
Show profile · Link to this post
When I use <#date> and <#time>, the format does not follow my settings from the Regional and Language applet in the control panel (Win XP). Is there another place this can be set from?
Avatar
Henry (Administrator) #2
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
No, not yet. But I have just added a format= parameter to the <#time> and <#date> tag where you can build your own time/date strings. Comes with the next version of BrowseAmp.

Thanks for the hint!

ps: here is a short list of all supported format identifiers. I took it from this website. Have a look for more detailled information and examples.

y      = Year last 2 digits
yy     = Year last 2 digits
yyyy     = Year as 4 digits
m     = Month number no-leading 0
mm     = Month number as 2 digits
mmm     = Month using ShortDayNames (Jan)
mmmm     = Month using LongDayNames (January)
d     = Day number no-leading 0
dd     = Day number as 2 digits
ddd     = Day using ShortDayNames (Sun)
dddd     = Day using LongDayNames  (Sunday)
ddddd     = Day in ShortDateFormat
dddddd     = Day in LongDateFormat
    
c     = Use ShortDateFormat + LongTimeFormat
h     = Hour number no-leading 0
hh     = Hour number as 2 digits
n    = Minute number no-leading 0
nn     = Minute number as 2 digits
s     = Second number no-leading 0
ss     = Second number as 2 digits
z    = Milli-sec number no-leading 0s
zzz     = Milli-sec number as 3 digits
t     = Use ShortTimeFormat
tt     = Use LongTimeFormat
    
am/pm     = Use after h : gives 12 hours + am/pm
a/p     = Use after h : gives 12 hours + a/p
ampm     = As a/p but TimeAMString,TimePMString
/     = Substituted by DateSeparator value
:    = Substituted by TimeSeparator value
Avatar
Azimuth #3
Member since Jan 2003 · 427 posts · Location: Chicago, Illinois - USA
Group memberships: Members
Show profile · Link to this post
As usual, you da man! In the mean time, I switched to getting the time from my other web server, and those codes worked! I'm off to delete my message on their support board for help with the same thing...  :whistling:
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Page created in 143.5 ms (66.1 ms) · 48 database queries in 57.8 ms
Current time: 2018-12-18, 13:18:13 (UTC +00:00)