use the date() function, in this case date("i") and date("h") or date("H")
Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] ----- Original Message ----- From: Pag <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 13, 2003 10:25 PM Subject: [PHP] dumb time question > > Ok, this is going to be laughable, but here goes. I am looking at code too > much to get this one: > > Have 2 text fields on a database called "hours" and "minutes". > How can i get the current time (hour-minutes) in two digit format and > apply it to the two variables? Everything i do only gets one digit when the > minutes are between 00 and 10. > I know its going to be stupid but anyway, could use your help, i cant see > anything straight in this code anymore. :-P > Sorry and thanks. > > Pag > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php