Date Format


Posted on 16th Feb 2014 07:03 pm by admin

Hi there,

I have a date format like this right now:
Sat, 17 Oct 2009 17:04:00

I need to turn that into:
2009-10-17T17:04:00Z

My thought process was to remove with regex "Sat," and then just split the string up.

So I was wondering then what the regex would be for "Sat, "
This would apply to all cases.
Fri, 16 Oct 2009 15:00:00
Thu, 15 Oct 2009 22:01:00

So I just need the first 3 letters with the comma and space after the comma to be removed.

No comments posted yet

Your Answer:

Login to answer
265 Like 38 Dislike
Previous forums Next forums
Other forums

Comparing MySql data and arrays.
I have a mysql table set up like this:
idsubjectbodyuseriddatetimetags1blog subjectblog body111|2

Help with ORDER BY
Hello. I would like to order by ascending States, then Cities, then Gyms in the following code, but

Nested (echoed) php running wrong script
Got a problem with a php website I'm creating.

In a nutshell, the first page is entirely html

Checking if multidimensional array is empty?
I have a for with multiple test input fields. Specifically the user submits multiple names and ages

need help in update query
hi
i have a dynamic form. i need help in how can i use update query when values from dynamic for

Working with Dates, help.
Sooo to make a long story short, here's what im trying to accomplish.

I need to create a drop

Problem with umlauts and UTF-8
Hello every1,

I'm creating my own little CMS at the moment and got some problems with the cha

PHP hyperlinks generator
Hi

I need some help to get this done using php:


1 - I have few hyperlinks say 500

Refining of search Criteria
Dear Friends

I need a help, I have a search page which of cars related, which has different s

How to add functionality to a simple php calender?
Hello everyone,

I have just finished creating a simple php calander. Can someone point

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash