adding -'s to a numeric string
| From: | Adam Williams | Date: | Wed, 21 Apr 2004 15:34:00 +0000 |
| Subject: | adding -'s to a numeric string | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-184140@lists.php.net to get a copy of this message | ||
Hi, I have a form where I have a user entering in the date in a numeric
string. For today they would enter 04212004 and so on...I'm working on
this date within mysql server, and mssql server handles dates as
04-21-2004 when you use convert(varchar,field,110). So how in PHP can I
change a variable's value which is 04122004 into 04-21-2204
thanks!