[Rails] data retrieve for the current date

2012-02-03 Thread amvis
My database(PostgreSQL) have some amount of data, so i need to retrieve the data for current date only.But my doubt is how to compare the today date with created_at field. Now am trying so many ways to find that. Is this correct way * where created_at BETWEEN '2012-01-16 00:00:00.0' AND

Re: [Rails] data retrieve for the current date

2012-02-03 Thread Philip Hallstrom
amvis wrote in post #1043961: My database(PostgreSQL) have some amount of data, so i need to retrieve the data for current date only.But my doubt is how to compare the today date with created_at field. Now am trying so many ways to find that. Is this correct way * where created_at BETWEEN