|
Posted by Marek Kilimajer on 09/29/13 11:07
Vin wrote:
>
> Here is an example of what I'm talking about:
>
> Filename looks like this: MDcameraname20050108124537001A.JPG
> I would like the output to look like this: 01/08/2005 12:45:37
>
preg_match('/MDcameraname([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})/',
$filename, $m);
$m[1] - year
$m[2] - month
..... etc.
Navigation:
[Reply to this message]
|