Jump to content

PHP Date Format


Nitestarz78

Recommended Posts

I have a form where a user fills in the date of their choice for a seminar. This is in UK format.

 

The form displays the results on the thank you page as well as emails me the information, from which I submit into my db.

 

How can I get the date to change to US format when it is mailed to me?

 

Please let me know if you need any additional information.

Link to comment
https://forums.phpfreaks.com/topic/268024-php-date-format/
Share on other sites

It doesn't really matter how to convert it. When the user has control over the format, there is no consistency, thus it's nearly impossible to write code to account for all the possibilities. Most datepickers not only present users with a uniform method of selection, they allow you to configure the format in which the data is sent from the form.

Link to comment
https://forums.phpfreaks.com/topic/268024-php-date-format/#findComment-1375493
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.