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

How to calculate days from variable date?
This will be easy for one of you gurus. I want to fetch the date from a variable date, for example:<

UDP Multicast question
Hey,

Im not really in the know when it comes to network related programming and activitie

Basic Forum Tutorial
Hi, I'm new to PHP. I want to build a basic forum for my site using PHP and MySQL. I've searched t

add 20 000 to the rowcnt
Hi ...
I need to add 20 000 to the row count but just cant find a way to do this i am new to php

Regular expression tips or resources
Hello! I'm having some issues implementing the appropriate regex patter to eliminate unwanted charac

tag inside php...
hi


Code: <?php
echo "<td width="$columnWidth%" align=&

form help
this doesn't work. i want the form action to go the location.href of the submit button chosen.. how

Not sure why this script is not working?
Hi I am new to php programing and I was trying to make up a simple script like a captcha but I canno

Create PHP table grid help, please
I have a MySQL database setup, now it's time for the table (gridview) design in php. Here's the prob

Linking with Foreign Keys
I have been getting an erro when I try and link:

create table Faculty_Specialty (I_Name v

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