A DateTime object can be constructed with a specific value of ticks. Once you have determined the ticks value, you can do the following:
DateTime myDate = new DateTime(numberOfTicks);
String test = myDate.ToString("MMMM dd, yyyy");
More Related Contents:
- How do I update a value in C# and SQL Server? [closed]
- How to make an algorithm to get all column names from across tables that relations with their primary key in SQL Server and C#?
- Procedure or function xxxxx has too many arguments specified [duplicate]
- Call a stored procedure with parameter in c#
- Insert 2 million rows into SQL Server quickly
- SQL Network Interfaces, error: 50 – Local Database Runtime error occurred. Cannot create an automatic instance
- Cannot open database “test” requested by the login. The login failed. Login failed for user ‘xyz\ASPNET’
- Getting data from stored procedure with Entity Framework
- Avoiding SQL injection without parameters
- Why should I use int instead of a byte or short in C#
- When using Trusted_Connection=true and SQL Server authentication, will this affect performance?
- What represents a double in sql server?
- SqlDataSourceEnumerator.Instance.GetDataSources() does not locate local SQL server 2008 instance
- Queuing in OneWay WCF Messages using Windows Service and SQL Server
- Connection timeout for SQL server
- MultipleActiveResultSets=True or multiple connections?
- What’s the fastest way to bulk insert a lot of data in SQL Server (C# client)
- What SqlDbType maps to varBinary(max)?
- Received an invalid column length from the bcp client for colid 6
- Retrieve image from database in asp.net
- Can’t get sql server compact 3.5 / 4 to work with ASP .NET MVC 2
- What is passing parameters to SQL and why do I need it?
- Fastest method for SQL Server inserts, updates, selects
- How to retrieve binary image from database using C# in ASP.NET
- Database Error: There is no row at position 0
- C#: SQL Server Connection String
- Best way in asp.net to force https for an entire site?
- Can I get more than 1000 records from a DirectorySearcher?
- Built-in helper to parse User.Identity.Name into Domain\Username
- Are static variables thread-safe? C#