#MM-YYYY
"2011-10".split("-").reverse.join("/") => "10/2011"

Ruby parsing date

by RoadHouse, November 24, 2011 12:40, 3 refactorings, tagged with ruby, date

anyone has the better solut...

70089e712ed13abb99bec89bd5bfba77 Talk
function mdy($mid = "month", $did = "day", $yid = "year", $mval, $dval, $yval)
{
if(empty($mval)) $mval = date("m");
...

PHP Month Day Year Smart Dropdowns

by https://www.google.com/accounts/o8/id?id=AItOawkrlIWZOJFG_JL2F2-39pufYjElslWtCGU, September 15, 2011 04:55, 8 refactorings, tagged with time, php, date, code
D41d8cd98f00b204e9800998ecf8427e Talk
var d = new Date();
var y = new Array();
	y[0] = d.getFullYear();
...

JavaScript Looks a bit messy

by froggles, September 17, 2010 10:42, 3 refactorings, tagged with javascript, date

Hi all, first time poster h...

D41d8cd98f00b204e9800998ecf8427e Talk
def scale_dates(dates):
    rel_dates = []
    first_day = dates[0]
...

Python Scale data points with the ...

by Tafkas, January 22, 2010 12:55, 3 refactorings, tagged with python, date, timestamp

In order to print a chart t...

693a4661eaa71435ce5ebe61de64c5a4 Talk
def self.at_beginning_of_interval(time, interval_type)
      #simple substraction does not (seem) to work for long intervals (summer/winter time ?)
      #and at_beginning_of_hour is not defined
...

Ruby At beginning of interval

by pragmatig, May 24, 2009 18:33, 1 refactoring, tagged with time, ruby, date

This code was necessary sin...

4fc8066b5aeba133f665ec8f30f92a9c Talk
def first_day_of_month(selected_date)
...

Ruby Splitting array into define...

by Bonobo, March 25, 2009 14:04, 4 refactorings, tagged with ruby, date, arrays, split, calendar

I'm mainly interested in op...

4e0322e79d041875f3ef7db64e2d5b18 Talk
DateTime todayUTC = DateTime.Today.ToUniversalTime();
DateTime currentTimeUTC = todayUTC;
...

C# Generating a list of time v...

by fezmonkey, October 16, 2008 22:06, 3 refactorings, tagged with time, date, C#

I need to generate a list o...

F912d7c5332fb479523439b9da1dbeae Talk
def date(date, time = false)
    date = Date.parse(date) if date.is_a? String
    day = date.strftime('%d')
...

Ruby Human Date Method

by bazookaaa.myopenid.com, July 05, 2008 07:51, 6 refactorings, tagged with time, date

Seems like this method coul...

75fce382ae1f51533ea890ef92dcb47b Talk
class Article < ActiveRecord::Base

  # Find all articles in the given date range based on the published_at field
...

Ruby Building a dynamic date range

by claytonlz, May 08, 2008 23:45, 2 refactorings, tagged with date range, date

I've got a route that handl...

E17d936d4535519716b6e810052feac5 Talk
<?php
function fecha ()
{
...

PHP Spanish date Function

by streo.myopenid.com, November 13, 2007 11:54, 5 refactorings, tagged with php, date, spanish, StReO, 3v-doble

hi, I'm a student and i cre...

55502f40dc8b7c769880b10874abc9d0 Talk