PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php // Specific date and time in UTC $date = new DateTime('2024-10-06 12:00:00', new DateTimeZone('UTC')); // Convert to IST $date->setTimezone(new DateTimeZone('Asia/Kolkata')); // Output the date and time in IST format echo $date->format('Y-m-d H:i:s'); // Outputs the specified date and time in IST
Show:  
Copy Clear