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

  • Home
  • SEARCH
  • 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 7997095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:53:12+00:00 2026-06-04T14:53:12+00:00

I get php output function from another function and it always returns date in

  • 0

I get php output function from another function and it always returns date in this-like format:

2012-05-24 09:05:20

So my question is how can i get from variable $p_re[“last_login”] format I need? I need to have it like

24.5.2012 09:05:20

Thank you all I did not find it in any section there are some – changing right from database but i need to “rewrite” format from already output variable. Thank you.

  • 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-04T14:53:14+00:00Added an answer on June 4, 2026 at 2:53 pm

    Try This code just before displaying date on page

    $p_re["last_login"]  = date('d.m.Y H:i:s', strtotime($p_re["last_login"]));
    

    More info

    ‘d.m.Y’ will return 24.05.2012

    ‘d.n.Y’ will return 24.5.2012

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

Sidebar

Related Questions

I using PHP's strtotime function for converting date from one format to another i
I have this output(from another system) that I need the Test field to be
I have been trying to get the crc32 function from PHP to match results
This is sort of a rookie question, but... I'm calling a function in another
I can't get PHP to recognize the ImageMagick (Imagick) class. Everything else works, the
Is there a way to get PHP-like print_r(object) funcionality in iPython? I know I
$(function() { setInterval(function() { $.get(refresh.php, function(result) { $('#response').empty() .hide() .html(result) $(#response).append(result) .fadeIn(slow); }); },
I am trying to get my datatable to take a POST JSON output from
In PHP web programming, I always made a singleton Output object in which I
I am trying to call a page with ajax, but from another server. This

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.