Subject | how to change Date Format from English to Spanish using AdoDb? |
---|---|
Author | JJHERMOSILLO |
Post date | 2004-10-30T22:11:48Z |
Hi people.
I'm programing some test scripts so i have this question.
how can i change the format of the output dates showed with the
pager object in AdoDb.?
here is my Example.
<?php
include_once('adodb/adodb.inc.php');
include_once('adodb/adodb-pager.inc.php');
session_start();
$db = NewADOConnection('firebird');
$db->PConnect("localhost:database.fdb", "sysdba", "masterkey", "");
$sql = "select current_date from MyTable;
$pager = new ADODB_Pager($db,$sql);
$pager->htmlSpecialChars = false;
$pager->showPageLinks = true;
$pager->linksPerPage = 6;
$pager->cache = 60;
$pager->Render($rows=18);
When i run the script in the browser, the format date it's something
like.
Sat 30, Oct 2004
I wan't to show de same information but in Spanish. (Sabado 30,Oct
2004)
Any Ideas????
Thanks :D
I'm programing some test scripts so i have this question.
how can i change the format of the output dates showed with the
pager object in AdoDb.?
here is my Example.
<?php
include_once('adodb/adodb.inc.php');
include_once('adodb/adodb-pager.inc.php');
session_start();
$db = NewADOConnection('firebird');
$db->PConnect("localhost:database.fdb", "sysdba", "masterkey", "");
$sql = "select current_date from MyTable;
$pager = new ADODB_Pager($db,$sql);
$pager->htmlSpecialChars = false;
$pager->showPageLinks = true;
$pager->linksPerPage = 6;
$pager->cache = 60;
$pager->Render($rows=18);
When i run the script in the browser, the format date it's something
like.
Sat 30, Oct 2004
I wan't to show de same information but in Spanish. (Sabado 30,Oct
2004)
Any Ideas????
Thanks :D