search for: monment

Displaying 1 result from an estimated 1 matches for "monment".

Did you mean: moment
2006 Jun 12
3
compare Date with TIme
Hi When returning data from a database column set as a date field I get ''2006-06-06'' I am then have these two lines of code in my controller, taht gain the date I require. pNow = Time.now @pDate = Time.local(pNow.year, pNow.month, 1) At the monment one is set to a date data type while one is set to a Time data type. how can i change these to be the same data type so i can run a > if statment on both of them to compare whats greater than the other? thanks scott -- Posted via http://www.ruby-forum.com/.