Jump to content

Date format


jschofield

Recommended Posts

Hello all,

I am pulling a date from a flat file that is 4/17/07. I am trying to convert this into 04/17/2007. This is how I am doing this.

 

outdate = date("m/d/Y" , $vals[16]);

 

The $vals[16] is where the date is located at in my file. The output I get is the same format that is in my file before converting. So pretty much my converting of the date does nto work. Anyone have any ideas? Please help. Thanks everyone.

Johnnie

Link to comment
https://forums.phpfreaks.com/topic/49560-date-format/
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.