Jump to content

Format a string into mysql datetime


yoda699

Recommended Posts

Hey,

So I got a form that requires the user to insert: the hour, the minuets, and if its AM or PM.

what I get is three variables:

$hour

$minuets

$amPm

 

Those variables are combined into a string.

I need to convert this somehow to readable format for mysql server and insert the data. I found loads of function to convert date from mysql into strings, but not the other way around. Any suggestions about this issue?

 

Thanks,

Link to comment
https://forums.phpfreaks.com/topic/182781-format-a-string-into-mysql-datetime/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.