How to print GMT 5:30 time in a TextBox using PHP . Please .... i found many scripts that are not working . i want to print this format

eg: 18-12-2008 1:06 AM . Please

Try this

<?php
putenv("TZ=GMT");
$gmt= date("d-m-Y h:i A"); 
echo "<input type='text' value='$gmt' />";
?>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.