This is a slightly odd problem, which means the solution is probably something trivial that im just missing.
I have SQLServer 2008 developer on my local. I was using the Date type, and then realized godaddy uses 2005 which Only supports datetime. Im using LINQ, so I just changed to a datetime on the database side and changed the server ...
I need to represent dates earlier than January 1 0001. Do you know a library that includes such a type?
It should provide the following functionality:
Add/Subtract
BigTimeSpan
Greater / Less than comparison
It would be ok if values would be less exact the longer the date is ago.
...
Hi! Is there an opportunity to convert a string into a date in bash? For example: I have a time format: "%Y-%m-%dS%H:%M:%S". An example of such string is "2009-06-24S12:34:56". I need to convert this string into a date (unix timestamp) in bash. How can I do this?
...
Hi,
I have maths problem ... (at the moment i solved it using manual iteration which is pretty slow) ...
For example if an employee got paid weekly (it can be fortnightly / every 2 weeks and monthly) with certain date (let's call the employee got paid every tuesday and for monthly the employee paid on certain date).
I have date range...
Hi there.
I'm using v.s 2008 with c#.
I have a .rdlc file and it using a objectdatasource. ods has two datetime parameters.
That datetime parameter's format must be dd-MM-yyy. but that time threw an exception.
Exception is : An error has occurred during report processing.
String was not recognized as a valid DateTime.
My code is :
...
Hi,
I need to know how to convert a date time of GMT time zone format into other formats like Eastern,Pacific,Mountain and India.. time zone formats in c#,asp.net2.0 and dot net frame work 2.0.
Thanks in Advance
Rupa.
...
Rails has been good with automatically inserting correctly formatted datetimes in MySql without the need for me to give it much thought.
However, for doing a validation, I need to check if a stored mysql datetime value (ie 2008-07-02 18:00:00) is greater than or less than "now". I can call DateTime.now or Time.now but how can I convert...
I need to compare two datetime values to determine equality(exactly the same),using minute precision.Would this be the best way to do it? My dates could have seconds and milliseconds, but i want to consider only down till minutes.
where (Math.Abs(datetime1.Subtract(datetime2).TotalMinutes) == 0)
...
I want to parse dates like these into a datetime object:
December 12th, 2008
January 1st, 2009
The following will work for the first date:
datetime.strptime("December 12th, 2008", "%B %dth, %Y")
but will fail for the second because of the suffix to the day number ('st'). So, is there an undocumented wildcard character in strptime...
How to write a query to find the time difference ?
time format is like this
2009-08-12 02:59:59
i want to compare
this time with
2009-08-12 02:59:10
how to check these two
i want to return some row having the time difference is 30sec
how to write a SQL statement ??
...
How to properly extract a time only from the datetime object (post.created_at, to be precise) with/without the influence of TimeZone? How to extract the day, month, year? How to extract the day/month/year via a custom pattern (is it possible)?
...
I have current have two UI components used to specify a date and a time. Both components return java.util.Date instances representing the calendar date and time respectively. My question is:
What is the best way to combine these values to create a java.util.Date instance representing the date and time? I would like to avoid dependenc...
What's the easiest way to give a Time object representing a given time (say 5pm) on a given date (say 1/1/2010) in a given time zone (say EST)?
...
And what factors would cause me to choose one or the other?
...
I am using UTC to store data and time values in the DB. The values are converted to localtime on the client or per client timezone. I stepped on these scenarios from the MSDN article, where displaying the time from UTC seems to pose issues during daylight savings.
Someone living on the east coast of
the United States types in a val...
The situation is you have a value in Seconds (XXX.XX), and you want to convert to HH:MM:SS using T-SQL.
Example:
121.25 s becomes 00:02:01.25
...
I have a rails time-based query which has some odd timezone sensitive behaviour, even though as far as I know I'm using UTC. In a nutshell, these queries give different answers:
>> Model.find(:all,:conditions=>['created_at<=?',(Time.now-1.hours).gmtime]).length
=> 279
>> Model.find(:all,:conditions=>['created_at<=?',(Time.now-1.hours)])...
ASP.NET Json() formats and returns a date as
{"d":"\/Date(1240718400000)\/"}
which has to be dealt w/ on the client side which is problematic. What are your suggestions for approaches to sending date values back and forth?
Thanks
...
I have my own C++ DateTime class defined as:
class DateTime
{
public:
int year;
int month;
int day;
int hour;
int min;
int sec;
int millisec;
};
I have 2 DateTime which I need to compare to see which one is greater than (more recent) the other.
Is there any freely available C++ DateTime class that I can use to
Convert...
Hi - T-SQL DateTime Question.
I have a set of time ranges. During those time ranges there could be a set of overlapping time ranges that I call 'blocked' out time. The blocked time wouldn't span more than one day. What I want to do is split the time to exclude the blocked out time, basically giving me the time ranges that are not 'block...