Month String to Numeric?


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

Hi guys,

Given a month as a string, is there a simple way to find the numeric representation of said month?

Did you know?Explore Trending and Topic pages for more stories like this.
I've used a switch statement but I'm wondring if there is a more elegant way of doing it?

Thanks in advance,
No comments posted yet

Your Answer:

Login to answer
90 Like 29 Dislike
Previous forums Next forums
Other forums

Breaking results into week blocks
I have a set of dates (and times), which are returned from a mySQL query.

These usually span

Which practice of iteration through containers is preferred
In the "real world" what kind of loop do most people use to iterate through a container like a vecto

session checking in page load
hai all I have a web site is www.Mryas.com in this my login page is Page1.aspx its co

SESSION question
I am building an application , a directory for auctions.
For SEO i made a script which copies a p

switch form actions? not working
i want on submit to go to different pages according to the CatID

Code: <?php $CatID=$_

Filling gaps in dates
So i'm doing a query for sales data and my return array looks like this

('date' => '20

Amend code to allow multiple attachments
Hi

I have a php page that allows the user to browse to a file (image) then sumbit, the confi

Random Number Generation And Probability
Hello, I am working on a function which has to insert data into a SQL table.

we have to suppl

Windows Authentication
I have a website which is windows authenticated.
now i want something more on this application.<

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

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