On 23/06/11 10:04 AM, Shawn McKenzie wrote:
On 06/22/2011 06:54 PM, David Nicholls wrote:
I'm late to the party, but strtotime works great, though you need to
give it what it expects:
$ts = strtotime(str_replace('/', '-', $date));
Thanks, Shawn, that's a bit more elegant! I'll give it a go.
On 06/22/2011 06:54 PM, David Nicholls wrote:
>> I'm late to the party, but strtotime works great, though you need to
>> give it what it expects:
>>
>> $ts = strtotime(str_replace('/', '-', $date));
>>
>
> Thanks, Shawn, that's a bit more elegant! I'll give it a go. I didn't
> know how to do the
On 23/06/11 1:35 AM, Shawn McKenzie wrote:
On 06/22/2011 09:05 AM, David Nicholls wrote:
I'm trying to convert a date and time string using strtotime()
The date and time strings are the first entry in each line in a csv file
in the form:
22/06/2011 9:47:20 PM, data1, data2,...
I've been tryin
On 06/22/2011 09:05 AM, David Nicholls wrote:
> I'm trying to convert a date and time string using strtotime()
>
> The date and time strings are the first entry in each line in a csv file
> in the form:
>
> 22/06/2011 9:47:20 PM, data1, data2,...
>
> I've been trying to use the following approac
4 matches
Mail list logo