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
Did you know?Explore Trending and Topic pages for more stories like this.

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

Spaghetti Code
So.

I've pretty much reached the point where I have so many isset s on one page that I can't

Dynamically allocating the number of rows in a table based on a variable value
Hi,
I have situation here which i cannot resolve, I have a variable temp which stores the num

Share admin accross websites
I'm using .net memberships and roles in one of my sites, but I need to be able to share logins and p

(sub)screen resize modification doesn't work after ECC 6 EhP 4 installation
Hello,

We have previously extended the size of the custom data tab on PO transaction ME23

Delete records not in top 15
Hi,

I'm creating a hall of fame page in my game and the page will only display the top 15 sco

Renaming array keys
The issue: renaming array keys inside a foreach loop.

I'm trying to build a pie chart image w

Undefined variables
hi
----------------------------------------------------------------------------------------------

noob cURL help
I have a pretty basic form that I need to cURL post to a file in my includes folder (includes/login.

constructor ?
i have written this program and made 3 constructors in the class and i want to call them in the main

Mail sending is slow on server
Why mail is taking time to be send on apache-linux server

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