Php code for dating site
* If you want the date in a different time zone, * say if you come from Nairobi, Kenya like I do, you can set * the time zone to Nairobi as shown below.
*/ date_default_timezone_set('Africa/Nairobi'); // Then call the date functions $date = date('Y-m-d H:i:s'); // Or $date = date('Y/m/d H:i:s'); // date_default_timezone_set() function is however // supported by PHP version 5.1.0 or above.
The solution is to build our own string using the Date functions: MM/DD/YYYY hh:mm Sample: Date/Time: Arclab® Website Link Analyzer is a software product for Windows PC to analyze and optimize your website for search engines (SEO), create sitemaps, scan for broken links and other problems. Disclaimer: The information on this page is provided "as is" without warranty of any kind.
@Ayexe M A simpler and more correct answer would not be to omit potentially important and related information, but instead to answer the question, as you suggest, but then provide additional information on timezones beneath it.
I have been programming with PHP for 5-6 years, "developed" (or should I say configured) an e-commerce site with Joomla for my dad's business and have been doing contract works here and there.
Define server timezone and server date format according to your preferences.