I have a timestamp exported from a program that I'm not sure how to convert programmatically using c#
I can get more examples if required
any pointers would be appreciated
1280833200 == 3 aug 2010 12:00
thanks,
Mark
...
Is there a way in VB.Net to determine if the timezone the current system has daylight savings time in effect? Of course I can get the offset from GMT using the "z"/"zz" formatting option, but that doesn't tell me if DST is in effect for the current timezone or if the current timezone is in standard time...or if DST/Standard time aren't ...
i want to change the DateTime for MySQL in C#
my MySQL database only accept this format 1976-04-09 22:10:00.
in C# i have a string who have a date value
string str = "12-Apr-1976 22:10";
i want to convert for MySQL then it look like
1976-04-12 22:10
How i can change them or how other programmer do this by using dd mm hh yy metho...
I've got date and time in separate fields, in yyyyMMdd and HHmmss formats respectively. To parse them I think to construct a yyyy-MM-ddTHH:mm:ss string and feed this to joda-time constructor. So I am looking to get 1-st 4 digits, then 2 digits starting from the index 5, etc. How to achieve this? List.fromString(String) (which I found her...
Hi folks,
on this website the textual time is dynamically updated .. i'm guessing using javascript.
this is the html code, using Firebug to inspect the page ...
<strong class="big" id="ct">Friday, 3 September 2010 at 8:17:21 AM</strong>
with that time value incremementing each second.
I'm guessing some javascript updates the 'ct' e...
Does java.util.Calendar supports automatic winter/summer time changes?
...
The Time.iso8601 method is a restricted subset of ISO-8601.
Does anyone know what the limitations
are?
Does anyone know of a full
implementation for Ruby? I'm using
MRI 1.8.7
Thanks
Update
It looks like there isn't a single class that handles all of the various 8601 date and date/time combinations. However I have managed to wo...
Possible Duplicate:
DateTime null value
is it possible to set datetime object to null?
...
I have a website that displays the current date using the code Datetime.Now. From what I understand, Datetime.Now is supposed to display the current time as it would appear in the viewer's current locale.
At the moment, when I test on localhost, the website is correctly determining my location (en-nz) and displaying the right date. Howe...
Hi,
i got problem with a query, got something like this
command.CommandText = "SELECT " +
"COUNT(a.`id`) " +
"FROM " +
"`messageaccess` a " +
"WHERE " +
"a.`Users_LOGIN` = '" + Settings.UserLogin + "' " +
"AND a.`Status` = '" + Enums.MessageStatus.New + "' " +
"AND a.`FOLDER` = '" + Enums.M...
Let's say i want to know the number of Mondays in February 2014.
I understand this will use the DateTime class, but would like to see some coding examples please.
...
I think i'm mainly having a brain fart. I just want to fast forward a Date() until a specific day of the week and then get the Month, Day, Year for that.
E.g. today is 09/03/10 but i want a function (nextSession()) to return 09/08/10 (next wednesday).
How would I do this? The best thing I can think of is add a day to setDate() until ge...
I am trying to use joda-time with its Scala wrapper.
Saying val dt is a DateTime and contains a date (zero time), how do I get the date of the day befor it? dt - 1.days doesn't work and gives
"type mismatch" ("found: org.scala_tools.time.Imports.DateTime, required: ?{val -:?}").
Scala-time examples like 2.hours + 45.minutes + 10.sec...
Hi folks,
this is a continuation of a previous question I asked yesterday.
I'm trying to display a clock based on a pre-determined time value .. not the current clients time.
here's my JQuery...
$(document).ready(function () {
var currentTime = new Date('3/09/2010 9:27:29 PM');
setInterval("DisplayTime(currentTime, $('.answer...
Create_date -> Assume it will record as 5/2/2009. For search purposes when searching create date can we search by individual month or year from this or do we need to even record a create_day, create_month, crate_year for this? Once of the search filters for user content will be like example -> "Show content from last 2 weeks, last month,...
I'm trying to convert the javascript date to ASP.NET's DateTime.Now
var todaysDate = new Date();
document.getElementById('hdnDate').value = todaysDate.toString();
private void ConvertToDotNetDateTime()
{
DateTime myDate = (DateTime)hdnDate.Value; ??? ? //bit lost here
}
...
I have two date/time strings:
start_date = 10/2/2010 8:00:00
end_date = 10/2/2010 8:59:00
I need to write a function to calculate if the event is in the future, in the past or if it is happening right now - I've read a fair bit of documentation but just finding it quite hard to get this to work.
I've not really done much time base...
I'm trying to find an existing helper function that will accept a start and end date and interval (day, week, month, year), and will return an array each day, week month or year in that range.
Would love to find a pre-existing one if it's out there.
Thanks!
...
I have some dates that are returned as the following string:
Fri, 13 Aug 2010 01:48:47 -0400 (EDT)
I'd like to parse this and turn it into a datetime stamp, so like this:
2010-08-13 01:48:47
Any help would be awesome... thank you!
...
I would like a datetime in python to output like this:
Thu the 2nd at 4:30
But I find no way in python to output st, nd, rd, or th like I can with PHP datetime format with the S string (What they call "English Ordinal Suffix") (http://uk.php.net/manual/en/function.date.php).
Is there a built-in way to do this in python? strftime isn'...