¡@

Home 

c# Programming Glossary: date

Volatile vs. Interlocked vs. lock

http://stackoverflow.com/questions/154551/volatile-vs-interlocked-vs-lock

would ensure that thread B will always see the most up to date thing that thread A has written. Note however that this logic..

Displaying the build date

http://stackoverflow.com/questions/1600962/displaying-the-build-date

the build date I currently have an app displaying the build number in its.. rather than build 1.0.8.4321. The plan is to put the build date there instead So App built on 21 10 2009 for example. I'm struggling.. struggling to find a programmatic way to pull the build date out as a text string for use like this. For the build number..

Simple 2 way encryption for C#

http://stackoverflow.com/questions/165808/simple-2-way-encryption-for-c-sharp

answers here work fine but AES is a more secure and up to date encryption algorithm. This is a class that I obtained a few..

C# - Convert UTC/GMT time to local time

http://stackoverflow.com/questions/179940/c-sharp-convert-utc-gmt-time-to-local-time

saving. CultureInfo ci new CultureInfo en NZ string date Web service date .ToString R ci DateTime convertedDate DateTime.Parse.. ci new CultureInfo en NZ string date Web service date .ToString R ci DateTime convertedDate DateTime.Parse date As.. date .ToString R ci DateTime convertedDate DateTime.Parse date As per this date site UTC GMT Offset Standard time zone UTC..

Why .NET String is immutable? [duplicate]

http://stackoverflow.com/questions/2365272/why-net-string-is-immutable

we haven't changed Christmas we have produced a new date in late January. It makes sense therefore that Christmas.AddMonths.. code doing read operations is separate from that doing updates and using different objects may be natural I wouldn't make..

How can I create a Product Key for my C# App

http://stackoverflow.com/questions/453030/how-can-i-create-a-product-key-for-my-c-sharp-app

I need to create a product or license key that I update annually. Additionally I need to create one for trial versions... anything you want e.g. program features to enable expiry date name of the user if you want to bind it to a user . Then encrypt.. license file on windows is to provide it as a file which updates the registry saves the user having to type it . Beware of false..

How do the major C# DI/IoC frameworks compare?

http://stackoverflow.com/questions/4581791/how-do-the-major-c-sharp-di-ioc-frameworks-compare

and performance are all important factors in my choice. Update The resources and duplicate questions cited appear to be out.. and duplicate questions cited appear to be out of date can someone with knowledge of all these frameworks come forward.. something at least a few people had done already. Second Update If you do have experience with more than one DI IoC container..

Difference between Property and Field in C# 3.0+

http://stackoverflow.com/questions/653536/difference-between-property-and-field-in-c-sharp-3-0

around the variable. So if you decide you want to validate the variable at a later date it will be a lot easier. Plus they.. if you decide you want to validate the variable at a later date it will be a lot easier. Plus they show up differently in Intellisense.. Plus they show up differently in Intellisense Edit Update for OPs updated question if you want to ignore the other suggestions..

Calculate date from week number

http://stackoverflow.com/questions/662379/calculate-date-from-week-number

date from week number Anyone know an easy way to get the date of.. date from week number Anyone know an easy way to get the date of the first day in the week monday here europe . I know the..

C# Events and Thread Safety

http://stackoverflow.com/questions/786383/c-sharp-events-and-thread-safety

EventArgs.Empty Call any handlers on the copied list Updated I thought from reading about optimizations that this might.. that you never need to check for null in the first place Updated In case it wasn't clear I did grasp the intention of the advice.. protect against other threads requires a lot more work. Update in response to Eric Lippert's blog posts So there's a major..

How to Query an NTP Server using C#?

http://stackoverflow.com/questions/1193955/how-to-query-an-ntp-server-using-c

I need is a way to query an NTP Server using C# to get the Date Time of the NTP Server returned as either a string or as a DateTime.. Time of the NTP Server returned as either a string or as a DateTime . How is this possibly in its simplest form c# datetime.. answer this question for future reference public static DateTime GetNetworkTime default Windows time server const string..

How to decide between MonoTouch and Objective-C?

http://stackoverflow.com/questions/1583856/how-to-decide-between-monotouch-and-objective-c

Doing any XML work MonoTouch. Period. String manipulation Date manipulation A million other little things we've gotten used..

Displaying the build date

http://stackoverflow.com/questions/1600962/displaying-the-build-date

a few things to say about this issue in Determining Build Date the hard way . The most reliable method turns out to be retrieving.. for that from the comments to Jeff's article private DateTime RetrieveLinkerTimestamp string filePath System.Reflection.Assembly.GetCallingAssembly.. System.BitConverter.ToInt32 b i c_LinkerTimestampOffset DateTime dt new DateTime 1970 1 1 0 0 0 dt dt.AddSeconds secondsSince1970..

Implementing a log viewer with WPF

http://stackoverflow.com/questions/16743804/implementing-a-log-viewer-with-wpf

Index Width Auto ColumnDefinition SharedSizeGroup Date Width Auto ColumnDefinition Grid.ColumnDefinitions TextBlock.. Grid.ColumnDefinitions TextBlock Text Binding DateTime Grid.Column 0 FontWeight Bold Margin 5 0 5 0 TextBlock.. Index Width Auto ColumnDefinition SharedSizeGroup Date Width Auto ColumnDefinition Grid.ColumnDefinitions Grid.RowDefinitions..

Read/Write 'Extended' file properties (C#)

http://stackoverflow.com/questions/220097/read-write-extended-file-properties-c

the extended file properties in C# e.g. Comment Bit Rate Date Accessed Category etc that you can see in Windows explorer...

Parse DateTime with timezone of form PST/CEST/UTC/etc

http://stackoverflow.com/questions/241789/parse-datetime-with-timezone-of-form-pst-cest-utc-etc

DateTime with timezone of form PST CEST UTC etc I'm trying to parse.. culture CultureInfo.CreateSpecificCulture nl BE DateTime dt DateTime.ParseExact 24 okt 08 21 09 06 CEST dd MMM yy.. CultureInfo.CreateSpecificCulture nl BE DateTime dt DateTime.ParseExact 24 okt 08 21 09 06 CEST dd MMM yy HH mm ss .....

Simple C# CSV Excel export class

http://stackoverflow.com/questions/2422212/simple-c-sharp-csv-excel-export-class

Region New York USA myExport Sales 100000 myExport Date Opened new DateTime 2003 12 31 myExport.AddRow myExport Region.. York USA myExport Sales 100000 myExport Date Opened new DateTime 2003 12 31 myExport.AddRow myExport Region Sydney in Australia.. Region Sydney in Australia myExport Sales 50000 myExport Date Opened new DateTime 2005 1 1 9 30 0 Then you can do any of the..

Deserialize JSON into C# dynamic object?

http://stackoverflow.com/questions/3142495/deserialize-json-into-c-sharp-dynamic-object

string Items Name Apple Price 12.3 Name Grape Price 3.21 Date 21 11 2010 The following code will work at runtime var data.. var data serializer.Deserialize json typeof object data.Date 21 11 2010 data.Items.Count 2 data.Items 0 .Name Apple data.Items..

Reading csv file

http://stackoverflow.com/questions/3507498/reading-csv-file

null row line.Split ' ' importingData.Add new Transaction Date DateTime.Parse row 0 Reference row 1 Description row 2 Amount.. row line.Split ' ' importingData.Add new Transaction Date DateTime.Parse row 0 Reference row 1 Description row 2 Amount decimal.Parse..

Format a date in XML via XSLT

http://stackoverflow.com/questions/500915/format-a-date-in-xml-via-xslt

XML via XSLT When I use the XML serializer to serialize a DateTime it is written in the following format Date 2007 11 14T12.. serialize a DateTime it is written in the following format Date 2007 11 14T12 01 00 Date When passing this through an XSLT stylesheet.. written in the following format Date 2007 11 14T12 01 00 Date When passing this through an XSLT stylesheet to output HTML..

format date in c#

http://stackoverflow.com/questions/501460/format-date-in-c-sharp

this question It's almost the same simply use the DateTime.ToString method e.g DateTime.Now.ToString dd MM yy Or DateTime.. the same simply use the DateTime.ToString method e.g DateTime.Now.ToString dd MM yy Or DateTime dt GetDate GetDate returns.. method e.g DateTime.Now.ToString dd MM yy Or DateTime dt GetDate GetDate returns some date dt.ToString dd MM yy..

Parse string to DateTime in C#

http://stackoverflow.com/questions/5366285/parse-string-to-datetime-in-c-sharp

string to DateTime in C# I have Date and time in string in format like that.. string to DateTime in C# I have Date and time in string in format like that one 2011 03 21 13 26.. 26 year month day hour minute How can I pare it to System.DateTime I want to use DateTime.Parse or ParseExact if possible...

How to get the EXIF data from a file using C#

http://stackoverflow.com/questions/58649/how-to-get-the-exif-data-from-a-file-using-c-sharp

know a relatively easy way to get at the EXIF data such as Date And Time or Exposure programatically Thanks c# exif photography..

Parse C# string to DateTime

http://stackoverflow.com/questions/7580809/parse-c-sharp-string-to-datetime

C# string to DateTime I have a string like this 250920111414 I want to create.. I have a string like this 250920111414 I want to create a DateTime object from that string. As of now I use substring and do.. 4 4 int month Convert.ToInt32 date.Substring 2 2 ... DateTime dt new DateTime year month day ... Is it possible to use..

C#, Webbrowser control: How to delete Cookies from windows.form?

http://stackoverflow.com/questions/912741/c-webbrowser-control-how-to-delete-cookies-from-windows-form

a e ' domain ' b ' path ' c ' expires ' new Date new Date .getTime 1e11 .toGMTString It's derived from this.. a e ' domain ' b ' path ' c ' expires ' new Date new Date .getTime 1e11 .toGMTString It's derived from this bookmarklet..