Solved

PHP date in dd.mm.yyyy format

Posted on 2011-02-22
2
267 Views
Last Modified: 2012-05-11
I don't know how I get date in dd.mm.yyyy format. Is it now () or something?
Can you help me? 22.02.2011
0
Comment
Question by:mattimeikalainen
2 Comments
 

Expert Comment

by:Jason_Lotito
Comment Utility
Basically, you use date().

<?php
date('d.m.Y');
?>

Open in new window


http://www.php.net/date
0
 
LVL 27

Accepted Solution

by:
Lukasz Chmielewski earned 250 total points
Comment Utility
And assign to a variable :P
<?php
   $mydate = date("d.m.Y");
   echo"$mydate";
?>

Open in new window

0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

744 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now