473,471 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

PHP -Date

sri
Hi All,
Can we get the date time in the format depends on either country
code or country name in php.

Thanks&Regards
Srilatha.A
Jan 18 '08 #1
4 1637
sri wrote:
Can we get the date time in the format depends on either country
code or country name in php.
Whose country code? The server? Or the visitor? If the visitor, how do you
expect to determine the country they are in?

More to the point, why would you want to? For example, if the whole page
was written in English, why would a French visitor expect to see the date
alone written in his native language as "samedi 18.janvier 2008"?

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 19 days, 24 min.]

Ham vs Bacon vs Pork
http://tobyinkster.co.uk/blog/2008/01/17/pork-etc/
Jan 18 '08 #2

"Toby A Inkster" <us**********@tobyinkster.co.ukschreef in bericht
news:dc************@ophelia.g5n.co.uk...
sri wrote:

alone written in his native language as "samedi 18.janvier 2008"?
Vendredi 18 Janvier 2008
Jan 18 '08 #3
On Fri, 18 Jan 2008 14:15:25 +0100, Toby A Inkster
<us**********@tobyinkster.co.ukwrote:
sri wrote:
> Can we get the date time in the format depends on either country
code or country name in php.

Whose country code? The server? Or the visitor? If the visitor, how do
you
expect to determine the country they are in?

More to the point, why would you want to? For example, if the whole page
was written in English, why would a French visitor expect to see the date
alone written in his native language as "samedi 18.janvier 2008"?
Yup, only usefull for total translations (in which case you shouldn't
check country, but prefer the HTTP_ACCEPT_LANGUAGE header). Even then,
non-text data (dates, currencies, numbers) presentation examined quite
carefully. Often it's just better to stick to a non-language dependant
uniform presentation for those.
--
Rik Wasmus
Jan 18 '08 #4
Luuk wrote:
Vendredi 18 Janvier 2008
Ah yes. Samedi: wishful thinking.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 19 days, 4:01.]

Ham vs Bacon vs Pork
http://tobyinkster.co.uk/blog/2008/01/17/pork-etc/
Jan 18 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: androtech | last post by:
Hello, I'm looking for a function that returns a date range for a specified week number of the year. I'm not able to find functions like this anywhere. Any pointers/help would be much...
2
by: Tjerk | last post by:
Hello all, I have the script below to change an image depending on the date upto january it worked fine but then it just stopped working does anybody have an idea how I can make it work again or...
9
by: Thomas R. Hummel | last post by:
Hello, I am importing data that lists rates for particular coverages for a particular period of time. Unfortunately, the data source isn't very clean. I've come up with some rules that I think...
30
by: Dr John Stockton | last post by:
It has appeared that ancient sources give a method for Numeric Date Validation that involves numerous tests to determine month length; versions are often posted by incomers here. That sort of code...
3
by: captain | last post by:
Below is the sql for data with same date need to extract + or - 5 days data of same date also. How to also get data of + and - days related to same date. SELECT IM.Area, IM.Location,...
15
by: Khurram | last post by:
I have a problem while inserting time value in the datetime Field. I want to Insert only time value in this format (08:15:39) into the SQL Date time Field. I tried to many ways, I can extract...
12
by: Assimalyst | last post by:
Hi, I have a working script that converts a dd/mm/yyyy text box date entry to yyyy/mm/dd and compares it to the current date, giving an error through an asp.net custom validator, it is as...
6
by: Luvin lunch | last post by:
Hi, I'm new to access and am very wary of dates as I have limited experience in their manipulation and I know if they're not done properly things can turn ugly quickly. I would like to use a...
3
by: JJ | last post by:
Here's the code. $link="http://xbox360cheat.org"; $close_date=$_POST; #last content change check if ($close_date == 0) $close_date = date("Y-m-d H:m:s", mktime(12, 0, 0, date("m"), date...
9
lilp32
by: lilp32 | last post by:
I am relatively new to Access (using 2010) and this seems like it should be simple yet I can't seem to figure it out. I have aggregate count data from 30+ counting devices (101, 102, etc) which...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.