similar to: get month number of a date

Displaying 20 results from an estimated 6000 matches similar to: "get month number of a date"

2006 Jul 11
4
how get a substring of a string
hello all i want to get the substring of a string i found a source that do it...but don''t work in my machine example "the source of ruby".chars[0..5] that must return "the so" -- Posted via http://www.ruby-forum.com/.
2007 Dec 12
6
Add a month to a Date object
Howdy all, This may be the dumbest question in the world, but how can you "add one month" to a Date object? I can''t just add 30 days, because months have varying lengths. Any help would be much appreciated... Thanks! -Neal --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2006 Jun 05
5
Regexp - date validation
Can somebody tell me why the following RegExp doesn''t work for date validation in Rails... It validates fine in RadRails -- using REgExp panel. Intended format: (mm/dd/yyyy): %r{^(0[1-9]|1[012])(-|/)(0[1-9]|[12][0-9]|3[01])(-|/)(19|20)([0-9][0-9])$} If i try the following, it works in Rails: %r{(0[1-9]|1[012])(-|/)(0[1-9]|[12][0-9]|3[01])} When I add the last piece, it
2012 Feb 07
4
Unable to run Pass 11
Hi All, I am new to both Linux and Wine. I am running Mint 12. For work I use Stata, R, and PASS 11. I am able to install Stata and R as Linux apps. But PASS 11 is Windows only. I installed it using Wine and it appears to be installed. When I got to .wine/drive_c/Program Files/NCSS/PASS 11...I can see that all the files are there and when I either double click on PASS11.exe or use the
2008 Nov 29
3
Can't run Evidence Scribe
Hello, I have a program called "Evidence Scribe" it runs with .NET Whenever I try to run it I receive this: Code: blake at blake-desktop ~ $ env WINEPREFIX="/home/blake/.wine" wine "C:\Program Files\Idoneum\Evidence Scribe\Evidence Scribe.exe" fixme:gdiplus:GdipGetFontHeightGivenDPI Unhandled unit type: 3 Unhandled Exception: System.InvalidOperationException:
2009 Apr 21
2
Date Time format in Ruby
Can anyone give a suggestion so that i can able to format the date as like this 3th - 5th June 2009 -- Posted via http://www.ruby-forum.com/.
2008 Nov 17
7
super global dummy method for gettext + rails 2.2
Hi, since rails 2.2 doesn''t work with gettext anymore I decided to use a gettext dummy method until the gettext team relases a working version for rails 2.2. My application doesn''t need any i18n support right now and this way i figured it would be very easy to integrate gettext later. Just setup the plugin and go. So I need a method called _ which is available in alle models,
2010 May 24
4
Running .Net 2.0 SP1 application Zalktis
Hello! I am trying to run Latvian accounting software Zalktis (free demo http://www.zalktis.lv/faili.htm) on Wine. It requires MS .Net Framework 2.0 Service Pack 1 and MS MDAC Refresh 2.8 I am running latest Wine (wine-1.2-rc1), installed dotnet20 and mono trough winetricks. Operating system:ubuntu 10.04 This program installs fine, but then I want to run it crashes (with send and don`t send error)
2010 Jan 31
6
Action path - syntax error, unexpected tIDENTIFIER, expecting ')'
I have a user controller with login as action. When I access the index.html.erb file via application.layout file. I get a error on the login link on the index.html.erb page. I think I am having dfifficulty in setting up path to an action or even understanding how to set REST path properly. Can someone please help me. Here is the error on the home page:
2006 Jul 10
10
IE vs Firefox -- http:// matters?
I just noticed something interesting (or not) about getting to my RoR app on the 2 browsers. I''ve tested it running Webrick or Mongrel_rails and get the same behavior. The app is at http://www.mydomain.com:myport#/app/list Specifying that complete URL works fine in both browsers. However in IE if you just specify www.mydomain.com:myport#/app/list I get page not found. In FF the URL
2010 Feb 02
2
Subset and plot
Here is a runable program. When I plot Day and Wgt, it graphs all the data points. All I need is daily.sub1 plotted. I also need each "Tanks" to have its own col or pch. When I run it with the line with pch, it gives me nothing. rm(list=ls()) Trial<-rep(c(1,2),each=12) Tanks=rep(c("a3","a4","c4","h4"),each=3,2) Day=rep(c(1:12),2)
2010 Oct 05
32
puppet push mode
Hello All, I am trying to put puppet into push mode only. The instructions I''ve seen have said to put listen=true in puppet.conf but that doesn''t seem to have stopped the pull every 30 minutes. What else needs to be set? Thanks, Jim -- “Twenty years from now you will be more disappointed by the things that you didn’t do than by the ones you did do. So throw off the bowlines.
2006 Mar 29
4
Why doesn''t Rails 1.1 have all the Script.aculo.us 1.6 files?
Why aren''t builder.js, slider.js, and scriptaculous.js part of the Rails 1.1 javascripts? rab:javascripts $ pwd /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.0/html/javascripts rab:javascripts $ ls -l total 288 -rw-r--r-- 1 root wheel 148 Mar 28 08:56 application.js -rw-r--r-- 1 root wheel 28036 Mar 28 08:56 controls.js -rw-r--r-- 1 root wheel 23613 Mar 28 08:56 dragdrop.js
2010 Feb 02
1
Subset and point plot
OK, I need help plotting. I have column headings of Day, Wgt, Foodin, Rep, Grp and Tanks. Rep=c(1,2,3) and Tanks=c(a1,a2,a3,a4,a5,a6, c1,c2,c3,c4,c5,c6, h1,h2,h3,h4,h5,h6). I created a subset where I only would like Rep=2, and Tanks=c(a4,c4,h4) and would like to graph (points) of Wgt and Day. I would think that I only need 3 colors, but when I run with only 3, only 2 lines show up. When I add
2007 Oct 19
14
Agile Web Development Book, need a bit of help
I''m working my way through the book Agile Web Development with Rails, and I am in the section where the book has me creating a display_cart method and the associated view. When I copied the code from the book into the view, it threw this error. If anyone could give me some hints where I should be looking I''d appreciate it. NoMethodError in Store#display_cart Showing
2009 Oct 13
3
Site map
Hi All... I am using generate_sitemap plugin to generate sitemap. It goes very well and creates sitemap as well. My problem is I want some links that are coming from vender/plugins. Can any one tell me how to get those links??? Thanks all... -- Posted via http://www.ruby-forum.com/.
2007 Feb 27
14
Stop browser from "form filling" fields.
Hi all, I have a user login form which the browser keeps populating because of its form fill feature. So when anyone goes to log in it shows the previous login''s username and password. How can I stop the browser from populating a text field? Thanks in advance. Cheers, Diego --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to
2007 Nov 12
7
schema_info always wants to be 3, even when set to 7
Hi all, I''m having a very odd problem with db:migrate. I''m using Rails 1.2.5 on Windows XP SP2 and Ruby 1.8.6 I have seven migrations. If I run them with an empty database, it runs the first three, then halts. When I look in schema_info, the version is 3. If I run db:migrate VERSION=7, then it runs through the remaining 4 migrations, and the version is 7 in the DB.
2009 May 14
3
Mysql query is not working
Please, Can anyone help me to execute this query? SELECT * FROM table WHERE customer_id IN (SELECT IF(1 <> 2,''SELECT customer_id FROM customers'',''SELECT customer_id FROM company'')) Regards... -- Posted via http://www.ruby-forum.com/.
2010 Feb 10
2
simple subtraction in a single vector
OK, this is very elementary, but I need help. I have looked in Verzani, past postings etc. Problem: I need to subtract the "length" date between "h4" and "a3" #which would be 4-1 I would rather not convert the two columns into four columns (with headings being "a3","a4","c4","h4"). DF <- data.frame(length=c(1,2,3,4),