Questions tagged [datetime-select]

23 questions
0
votes
2 answers

python 2.7 how to read in dates

I have a python 2.7 question My data has the format below. (it is stock market data) The data name is finallist and it is a list in python. [['AGGP', '15-Mar-18', '19.22', '19.25', '19.2', '19.23', '26800\n'], ['AGGY', '15-Mar-18', '49.17',…
stormer1120
  • 97
  • 1
  • 5
0
votes
3 answers

How to pass in datetime parameters to your stored proc using asp.net

so i have a stored proc that i am passing in datetime params too return the data... The problem is i want to pass in default dates and times but not sure how to do this as i can only see datetime.now... here is my code... public void…
user7422837
0
votes
3 answers

Ruby on Rails converting date

I'm using html5 datetime-local type it sends this to the controller: 2015-04-03T00:00 is it possible to convert it to this: 2015-04-03 00:00:00 +0100
Felix
  • 5,452
  • 12
  • 68
  • 163
0
votes
1 answer

datetime_select not displaying in utc

In my rails app, there are certain travel expenses where I want them set and displayed in raw UTC time. I've added this to my config/application.rb config.time_zone = 'UTC' config.active_record.default_timezone = :utc There seems to be a set (blank…
alaup
  • 61
  • 1
  • 8
0
votes
2 answers

MySQL average number of hours between created datetimes for a specific time interval

I have a table with a field called "created" which is a datetime field. Assume NOW() is midnight on 2013-07-21, so NOW() = 2013-07-21 23:59:59 Now let's say I query for all records WHERE created BETWEEN DATE_SUB(NOW(), INTERVAL 4 DAYS) AND…
user2278120
  • 623
  • 2
  • 9
  • 22
0
votes
1 answer

Rails 3.2 datetime_select include_blank not working as expected

I am very new to Rails and am using version 3.2.6. So far I have made a simple practice application that includes a datetime. In my form partial I have <%= form_for(@item) do |f| %> [...snip irrelevant form fields...]
user1002119
  • 3,692
  • 4
  • 27
  • 30
0
votes
1 answer

changing the size of datetime_select field in rails

I tried to change the size of datetime_select using size and width and height but it seem not working they are so big while they just contain a number on them ? <%= f.datetime_select :start_time, :order => [:day, :month, :year, :hour,:minute] ,…
user1452250
  • 53
  • 1
  • 1
  • 4
0
votes
2 answers

Using accepts_nested_attributes_for in rails with datetime

I'm trying to use a repeatable section of datetimes in a rails app using accepts_nested_attributes_for. I have the following: accepts_nested_attributes_for :meetings, :allow_destroy => true, :reject_if => lambda { |a| a[:starting_at].blank? } In my…
1
2