/    Sign up×
Community /Pin to ProfileBookmark

Change the format of the date

Hi,

I need to know if possible how i can change the format of the date from this
03-04-2005 19:26 into a more readable format.

I literaly just pull this from my database into the variable $LastLogin.

I input it into the database like this : –
date(“d-m-Y G:i “);

Thanks
Adam

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@k0r54authorApr 03.2005 — ok how come this date is missin the "t" it is displaying it as

Sunday 3rd April 2005 a 9:25 pm
[code=php]date("l jS F Y at g:i a")[/code]

Thanks

adam
Copy linkTweet thisAlerts:
@phpnoviceApr 03.2005 — Try single quotes or maybe t. t is the tab character.
×

Success!

Help @k0r54 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...