Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Date format in Spanish

Posted on 2004-09-10
2
Medium Priority
?
472 Views
Last Modified: 2013-12-12
Hello

I have

<?php echo $HTTP_GET_VARS['mes']; ?>, <?php echo $HTTP_GET_VARS['anio']; ?>

which displays

9, 2004

I need to fomat so it shows

Septiembre, 2004 (in Spanish)

Thanks in advance
0
Comment
Question by:ceciliamtz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 36

Accepted Solution

by:
Zyloch earned 200 total points
ID: 12032454
Hi

I'm not sure about the Spanish part unless PHP has a Spanish version?

Anyways, you can do this:

$months=array("enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","    
diciembre");

<?php echo($months[intval($HTTP_GET_VARS['mes'])-1]); ?>, <?php echo $HTTP_GET_VARS['anio']; ?>

Regards,
Zyloch
0
 

Author Comment

by:ceciliamtz
ID: 12032483
fast and simple
exactly what I needed

muchas gracias!

Cecilia
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question