I need to get the current time, in Hour:Min format can any one help me in this.
print date('H:i'); $var = date('H:i');
Should do it, for the current time. Use a lower case h for 12 hour clock instead of 24 hour.
h
More date time formats listed here.
2.1m questions
2.1m answers
60 comments
57.0k users