Solved

PHP date in dd.mm.yyyy format

Posted on 2011-02-22
2
269 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
ID: 34952584
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
ID: 34953693
And assign to a variable :P
<?php
   $mydate = date("d.m.Y");
   echo"$mydate";
?>

Open in new window

0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

770 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