Search
 
SCRIPT & CODE EXAMPLE
 

PHP

date_default_timezone_set for india in php

<?php
	date_default_timezone_set("Asia/Kolkata");   //India time (GMT+5:30)
	echo date('d-m-Y H:i:s');
?>
Comment

date_default_timezone_set(): timezone id

'timezone' => env('APP_TIMEZONE');
Comment

PREVIOUS NEXT
Code Example
Php :: laravel blade for loop 
Php :: livewire onkeydown 
Php :: php get referrer 
Php :: wp get post content by id 
Php :: laravel redirect external url 
Php :: how to install bootstrap in laravel 
Php :: file delete in laravel 
Php :: wordpress get the main url 
Php :: php pluck from array of objects 
Php :: background image in laravel blade 
Php :: how to remove first element in array php 
Php :: enqueue font awesome wordpress 
Php :: blade comment 
Php :: php foreach echo key value 
Php :: php program to validate phone number using regular expression 
Php :: Error Call to undefined function CodeIgniterlocale_set_default() 
Php :: Add 2 days to the current date in PHP 
Php :: start server symfony command 
Php :: php get everything after last slash 
Php :: datetime to string php 
Php :: base64 decode in php 
Php :: laravel session has message 
Php :: woocommerce redirect shop page 
Php :: main.WARNING: Session size of 315269 exceeded allowed session max size of 256000 
Php :: get last 3 characters of string in php 
Php :: twig json_encode 
Php :: localhost install new plugin ftp wp 
Php :: default port for laravel 
Php :: laravel get public path url 
Php :: setup_postdata not working 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =