I am experimenting with C# w/ a C++ background. I have been playing with DateTime objects and find them pretty useful so far, especially the ParseExact() function!
Taking the idea of DateTime.ParseExact() one step further, I want to extract the DateTime from a string (a log entry) which will have other info in it, with variable lengths ...
Hi All,
I am developing an application in which I am trying to fetch Date, Time and Time Zone from single DateTimePicker control. Can anybody help to resolve this?
Thanks in advance.
EditV1: I am using .net framework 2.0. Now I am able to fetch Date and Time with Single DateTimepicker by setting its CustomFormat property as;
dtpicker2....
I have a set of actions that are returning time-series data with-in ranges specifiable to the minute.
They work fine with querystrings,
i.e.
/mycontroller/myaction?from=20091201 10:31&to=20091202 10:34
with or without URL encoded colons, but I thought it would be nice to have a pretty URL
/mycontroller/myaction/from-20091201 10:31/to-2...
I just want to clarify if I am understanding how dates & time zones work.
Basically, I have a date string @"2008-07-06 12:08:49" that I want to convert to an NSDate. I want this date and time to be in whatever the current user's time zone is set in. So if they are in GMT or HST, it's still 12:08:49.
If I have date in unix form 12153821...
Hello...
I'm going have SELECT a TIMESTAMP from the MySQL database. What I want to do is compare that to the current time using ColdFusion.
If 1+ from the DIFF do this....
If LT 1hr do this....
Thanks
...
Seems that when i create an object, the time is not correct. You can see by the script/console output below. Has anyone encountered anything like this, or have any debugging tips?
>> Ticket.create(...)
=> #<Ticket id: 7, from_email: "[email protected]", ticket_collaterals: nil, to_email: "[email protected]", body: "hello", subject: "tes...
Hi, I have two date time strings formated like so; 29/09/2009 15:19 & 29/09/2009 17:19 and basiclly all i want to do is compare the two date and time to see which is greater
Any Help?
...
Essentially, I have a query that is responsible for fetching all records (with specific filters) within the last month. I'm using Oracle's interval keyword and all was working great until today (December 31st, 2009). The code I'm using is
select (sysdate - interval '1' month) from dual
and the error I get it
ORA-01839: date not valid...
Been trying to solve this one for hours...
string date = "2009-09-23T13:00:00"
DateTime t = new DateTime();
t = DateTime.ParseExact(date, "HH:mm", null);
Results in this exception:
System.FormatException was unhandled
Message="String was not recognized as a valid DateTime."
...
What is the best way to store/retrieve a DateTime value that is created by an application with a specific local date and time, stored in a database on a server that may be in a different time zone, then retrieved by other devices in a different time zone, where those devices need to interpret the DateTime value with the same local time a...
Hello,
I would like to get the current date/time stamp of the server or client in ISO8601 format (ex. 31 Dec 2009, 02:53). I know that server time can be observed using PHP and brought into the DOM using jQuery $.getJson. Client side time can be recorded from the browser using javascript/jQuery. I want the time stamp to be static (not d...
Hello! I'm hitting the DB for a 100 records from a MySQL DB that have a DateAdded (timestamp) column.
I'd like to find a SMART way to display the records as follows in Coldfusion, w/o hitting the database multiple times.
Today:
- records.....
Yesterday:
- records.....
Earlier This Week:
- records.....
Earlier This Month:
- records.......
I have an application on a server which is UK based.
Say I needed the application to run at the same time for different countries. For arguments sake say I needed it to send an email to a mailbox whenever the time is 7pm in various countries.
How would I be able to achieve this? At the moment I just have it running from the Task Sched...
I have a program (jhead) that compiles with very few tweaks for both Windows and generic Unix variants. From time to time, windows users ask if it can be modified to also set the "creation date/time" of the files, but I don't see a way to do this with the POSIX api. What I'm currently doing is:
{
struct utimbuf mtime;
mtime....
How do I get datetime from date object python?
I think of
import datetime as dt
today = dt.date.today()
date_time = dt.datetime(today.year, today.month, today.day)
Any easier solution?
...
The MSDN article here states, that the default implementation of GetHashCode() does not guarantee unique results and should be not used as an identifier. So my question is whether DateTime.Now has its own implementation that would give out unique hashes. Thx for help
...
How can i convert String like 20100102 into datetime in a formate of dd/MM/yyyy?
...
I am getting the following error:
TypeError: Error #1034: Type Coercion failed: cannot convert "2010-01-02 23:28:17 UTC" to Date.
I am using WebORB to transfer data between Rails and Flex. The data coming from Rails is of type: 'ActiveSupport::TimeWithZone'. I am trying to assign it to a Flex 'Date' data type.
What am I missing?
...
Hi
Sometimes I get a datetime with a time sometimes it's just the date.
Of course if it's just the date I I want to format with "dd.MM.yyyy" and if it has a time "dd.MM.yyyy HH:mm"..
This is in a repeater, so I thought may be it's possible without a simple if statement?
which is the cleanest way for that?
Thank you and best regards...
Hello,
Is there any PHP function that returns time format as the MySQL fuction NOW()
I know how to do it using date() .. but I am asking if there is a function only for this.
e.g.
"2009-12-01 00:00:00"
...