Does anyone know of a way to do this? Im sure its been done before.
Need to generate html downdown lists, and fill in the month, day, year, and then the hour, and minute fields. I only need the MM/DD/YYYY to display current (where those values match current, mark that option selected). I wouldnt even know where to start. I assume loopi...
Jon Skeet spoke of the complexity of programming dates and times at the 2009 DevDays in London.
Can you give me an introduction to the ANSI C date/time functions on UNIX and indicate some of the deeper issues I should also consider when using dates and times?
...
I'm working on a blog migration from a custom built blog to Wordpress. One of the fields that Wordpress is looking for in the database is a date/time stamp set to GMT, which is 4 hours ahead of our time. So I basically need to take our date/time stamp (in YYYY-MM-DD HH:MM:SS format), and add four hours to it. I was looking at the MySQL c...
Hello!
How to create datetime object representing the very last moment of the current month ?
...
hi folks,
I have a DataGridView bound to a table from a .sdf database through a BindSource. The date column display dates like "d/M/yyyy HH:mm:ss". e.: "27/2/1971 00:00:00".
I want to make it display just "27/02/1971" in its place. I tried to apply DataGridViewCellStyle {format=dd/MM/yyyy} but nothing happens, event with other pre-built...
I just noticed something strange on my WinXP SP3 PC:
When I change the sytemdate from 2 November (W.Europe Standard Time) to 2 August (W.Europe Daylight Time), Windows Explorer shows a different time in the DateModified field of all the folders and files.
For example:
I saved a file today and the value of DateModified is '02-11-2009 18:...
Is there a way, even a very sneaky way, to change the time that a DateTime.UtcNow returns for a process or thread?
The SetSystemTime() win32 API call will change the time on the entire system. I've used this before but I would like a method that is less evil to other processes running on the system. Messing with the time is bad kungfoo ...
So I'm kind of new to VB and am just playing around with a little project, I currently need a loop that is constantly checking the systems clock to see if it's equal to a certain time.
While Not myTime.Hour = 24
If TimeOfDay = newTime Then
nfi.ShowBalloonTip(15)
intRandNumb = RandomNumber(1, 15)
...
I need my application to expire 30 days from today, I will store the current date in the application config.How will I check if the application has expired ? I don't mind if the user changed the clock back and the app works (too stupid a user to do that).
if (appmode == "Trial") {
????
}
...
I am parsing an Excel file and am having difficulty reading in the value of a cell that has a custom cell format of dd mmm yy. The value in the cell in question is 29 Oct 09 (cell B25). When I run
String arrive = Convert.ToString(_worksheets["GENERAL"].get_Range("B25", Type.Missing).Value2);
I get "40114" as the cell's value.
Th...
Hello,
I'm trying to get the sent date from outlook mails. For external mails I got it already running (see: How do I read the Recieved Date from Outlook MSG files -without- the Outlook API?), but for internal mails I get sth. like
"091026132413Z-64"
where
091026 is the date 26.10.2009 (in german file format dd-mm-yyyy) and the rest...
Let me know :)
$add_date = date ("Y-m-d H:m:s");
$expiry_date = 'how?';
How to insert into db the $expiry_date for 60 days. mysql format is datetime
...
I have a form which posts date information month, day, yeah, hour, minute, am/pm. How do i encode/decode this to and from unixtime using php?
...
I'm using Entity Framework, and I have a COMMENT entity. A COMMENT has a DATEMODIFIED property, which is a Nullable Date. I'm trying to build a query that will filter COMMENTs by date, so I create a startDate object, and do the following:
Dim q As ObjectQuery(Of COMMENT) = _
(From c In model.COMMENT Select c)
If startDate.HasValue...
Hi,
I want to find a date after a give weeks(months).
For example, I want to find the date after 2 week from today or find the date after 4 month from today.
Thanks
...
In C# ,How can i find the number of days in a month which resides in a DateTime object.
Ex :
DateTime objDate=new DateTime();
using the objDate, now i want to get the number of days of the current month. IS there any built-in function present in C# ?
Leap years also has to be taken care of
...
I have a complex sql query that I have in a stored procedure and am calling from C#.
The procedure requires a date-time which I pass in as DateTime object from c#, the problem seems to occur with the format of the date. If I change the parameter to string and pass it in as 'yyyy-MM-dd' it works fine.
Is there anyway to use the datetim...
Hi,
I am trying to insert a date value '2010-03-14 02:00:00 AM'(Day light saving start time for 2010 year) in a datetime field of a table in sql server 2005. The date is saved as '2010-03-14 03:00:00 AM' The server is installed in US(EST time zone).
Can anyone tell me the reason why the date is saving differently?
Thanks
Rupa
...
Hi
i'm getting dates from feed in this format
2009-11-04T19:55:41Z
i'm trying to format it using the date() function in PHP but i get an error saying:
date() expects parameter 2 to be long, object given in /bla/bla.php
i tried using preg_replace() to remove the T and the Z but still can't get it to work
any ideas on this ?
...
I have an ASP.NET MVC application where I am editing an existing database to update a paticular field, DateTime. My database has 4 fields, two of which are DateCreated and DateModified. When I try to update the field, I want to keep DateCreated time the same, no reason to update the date it was created, and I change the DateModified time...