HOME / BLOG / BLOG-POST

How to get default time by using php?

Get default time by using php

date_default_timezone_set('asia/kolkata');
 
 <div id="mytime">echo date('H:i:s');</div>

 


about authors

Sandip Das

Web Developer

Once a legend said “Any fool can write code that a computer can understand. Good programmers write code that humans can understand.” – Martin Fowler.



POST COMMENTS

Leave a Reply

Your email address will not be published. Required fields are marked *