Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9178829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:38:44+00:00 2026-06-17T17:38:44+00:00

I have a datetime stored in mysql as timestamp. I then format the datetime

  • 0

I have a datetime stored in mysql as timestamp.

I then format the datetime using

$newdate = date('d M Y', strtotime($this->query->datetime));

My question is how do I translate the date using codeigniter builtin lang helper?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T17:38:46+00:00Added an answer on June 17, 2026 at 5:38 pm

    in the application language folder add a subfolder for the language you want to translate to. In that folder make a file called date_lang.php and handle all you date translations.

     $lang['datefrom'] = "dateTo";
    

    Another option for translation of dates is to use locale.

    PHP will handle the date translations for you. Set the locale globally for the user.

    setlocale(LC_ALL, 'en_UK.utf8');
    

    In my current project, we use the locale to handle money and dates. We use CI language files to handle string translations

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Format mysql datetime with php Well.. I have stored date(c) in Mysql
I have date and time stored in my database as MySQL DATETIME datatype. While
I have the following date in mysql stored in DATETIME field: 2012-04-16 16:21:54 Than
I have written a SQL Server stored procedure that includes a DateTime parameter. This
I have an application that currently stores timestamps in MySQL DATETIME and TIMESTAMP values.
I have a problem constructing a mysql query: I have this table tSubscribers were
I have a table in a MySql database with a datetime field. This is
I have a MySQL table that contains datetime data stored in it. I need
I have my records in mysql stored with a datetime column. I would like
I have a UNIX-type timestamp stored in an INT column in MySQL. What is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.