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

Backflush
I am looking for a report in SAP that would give me a list of all parts that are populated with a ba

Forgot password won't work
My forgot password thing is not working properly. It is giving me this errorMailbox unavailable. The

Stats of viewers
Hello. I have a website in php and people can login. I want to make an admin control panel where u c

php automatically escaping single quotes
I'm trying to test out my security a bit and I've noticed that php is escaping my single quotes. For

Posting Serialized Data Not Working
I am trying to send an object from one PHP file to another using POST. I serialize the object and th

is_dir() problem
Hello,

I'm buidling a php scripts that dynamically get's subfolders from a specific folder.

button.click += new eventhandler() not works in if(!ispostback)
i want to use button.clcik event in function VIewScrap() which is called in if(!ispostback) but itdo

Downloading file (Headers)
I'm trying to make users download a file, but they must wait 60 seconds before it begins.

But

Using Windows message as a Handle
Hi,

I am writing one of my first multithreaded programs.

In one of the thread,

PHP Surveys
I really would like some advice.

If you have a client come to you asking for a survey to be d

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