today

VB.NET on Vista, trying to get date (Today) causes security exception

I have a VB6 program that someone recently helped me convert to VB.NET In the program, when saving files, I stamp them with the date which I was getting by calling the Today() function. When I try to run the new VB.NET code in Vista it throws a permission exception for the Today() . If I run Visual Studio Express (this is the 2008 Exp...

Mysql Datevalue()=Date()

I'm trying to split a table in two views depending on whether the field "Date" is today or not. I have tried using WHERE DATEVALUE(table.Date)=DATE(), but I get an error at saving saying that the last ) has wrong syntax. I tried adding a group by, but apparently everything after the ) gives me the same message about wrong syntax) Am I ty...

today plugin background problem

I tryed to write my first Windows Mobile application, and I have used the following sample to create my custom Today plugin. To write dynamic text into today the following code is used: case WM_PAINT: PAINTSTRUCT ps; RECT rcWindBounds; RECT rcMyBounds; HDC hDC; HFONT hFontOld; TCHAR ...

jQuery UI datepicker not showing week numbers

My jquery UI datepicker is not showing week numbers, even with the showWeek:true option set. Here is my code: <script type='text/javascript'> $(document).ready(function(){ $('#startDate').datepicker({ changeMonth: true, changeYear:true, dateFormat: 'd-M-yy', firstDay: 1, showButtonPanel: true, ...

How can "today's date" be varied for unit testing purposes?

I use VS2008 targetting .NET 2.0 Framework, and, just in case, no I can't change this :) I have a DateCalculator class. Its method GetNextExpirationDate attempts to determine the next expiration, internally using DateTime.Today as a baseline date. As I was writing unit tests, I realized that I wanted to test GetNextExpirationDate for d...

JIRA JQL searching by date - is there a way of getting Today() (Date) instead of Now() (DateTime)

I am trying to create some Issue Filters in JIRA based on CreateDate. The only date/time function I can find is Now() and searches relative to that, i.e. "-1d", "-4d" etc. The only problem with this is that Now() is time specific so there is no way of getting a particular day's created issues. i.e. Created < Now() AND Created >= "-1d"...

how to get record created today by rails activerecord?

How to write the :condition statement if I would like to get all the record which are created today? ...

Is this a dangerous override for Date.today in Ruby (on Rails)? (Timezone)

class Date class <<self alias_method :broke_ass_today, :today end def self.today Time.zone.now.to_date rescue Date.broke_ass_today end end because I would really hate to replace Date.today with that statement everywhere in our code base... that and its just much simpler write (and read) date Date.today, because that's...