GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  DotNet
Go To First  |  Previous Question  |  Next Question 
 DotNet  |  Question 133 of 165    Print  
Write an example for converting string value "31/12/2000" to date time and at the same time change its format "mm/dd/yy"

  
Total Answers and Comments: 2 Last Update: March 14, 2007     Asked by: usharani 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
February 14, 2007 02:26:40   #1  
swati Raut        

RE: Write an example for converting string value "31/1...
To conevrt string to date we can use Format( 31/12/2000 MM:dd:yy )
 
Is this answer useful? Yes | No
March 14, 2007 12:15:33   #2  
Buchingari Ravi        

RE: Write an example for converting string value "31/1...
There are two ways to convert string to date

Convert.ToDateTime();
DateTime.Parse();

 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : Another reason to consider server validation is a synchronization issue.Say I want to book a ticket tomorrow for the cinema. Even if the application brings all necessary information for validation, meaning both the date format and all available dates ...

Latest Answer : Both ASP and ASP.net can be run at same server, becuase IIS has the capability to respond/serve both ASP and ASP.NET request. ...

CTS defines all of the basic types that can be used in the .NET Framework and the operations performed on those type. All this time we have been talking about language interoperability, and .NET 
Latest Answer : CTS, common type system is the one which brings all .net languages data types on a common platform. It defines types like System.Int16, System.Int32 etc. A language may map 'int' to System.Int16 while another may map its 'int' data type to System.Int32.Because ...

A namespace is a logical naming scheme for types in which a simple type name, such as MyType, is preceded with a dot-separated hierarchical name. Such a naming scheme is completely under control of 
Latest Answer : Namespace - It is a logical group of classes means it defines boundary for classes. In a single program 2 namespace cannot be have same name. Assemblies - These physical structure of coding and it can store manifest (metadata). Assembly can be ...

Metadata is information about a PE. In COM, metadata is communicated through non-standardized type libraries. In .NET, this data is contained in the header portion of a COFF-compliant PE and follows 
Latest Answer : In Simple words, Meta data is set of tables that describe  the types and its members  defined in the assembly and the types and its members referenced in the assembly. Manifest is another set of tables that describe the assembly attributes like ...
Tags : Metadata

An assembly manifest contains all the metadata needed to specify the assembly's version requirements and security identity, and all metadata needed to define the scope of the assembly and resolve 
Latest Answer : whereas the manifest describes the assembly itself, providing the logical attributes shared by all the modules and all components in the assembly.The manifest contains the assembly name, version number, locale and an optional strong name that uniquely ...

Assemblies are made up of IL code modules and the metadata that describes them. Although programs may be compiled via an IDE or the command line, in fact, they are simply translated into IL, not machine 
Latest Answer : MSIL is the intermediate language which is platform independent. High level language compilers for .Net languages compile the high level code into IL which is not hardware specific. The use of IL allows integration of code written in different .Net languages ...

The global assembly cache stores assemblies specifically designated to be shared by several applications on the computer.You should share assemblies by installing them into the global assembly cache 
Latest Answer : A computer installed with the common language runtime has a machine-wide code cache known as Global Assembly Cache. In the .NET Framework, the Global Assembly Cache acts as the central place for registering the assemblies. All the shared Asp.Net assemblies ...

Attributes are declarative tags in code that insert additional metadata into an assembly. There exist two types of attributes in the .NET Framework: Predefined attributes such as AssemblyVersion, 
Latest Answer : Attributes are part of metadata for a class.Attributes are used to specify assembly information like key file name, or for specifying security related information. You can create new attributes for your specific needs or ideas. ...

A web farm is a multi-server scenario. So we may have a server in each state of US. If the load on one server is in excess then the other servers step in to bear the brunt. How they bear it is based 
Latest Answer : There is two or more than two server in webfarm method, and we also have a router in this technique, which is basically is used to route the a particular incoming  request .Where as in case of a webgarden we have a one server having more than one processor.There ...


 Sponsored Links

 
Related Articles

C++ String Representation and Handling

C String Representation and Handling In this C tutorial you will learn about string representation and handling how is string represented end string notation initializing char array character representation string literals example programe to understand the character array concept and the accessing
 

JavaScript String Object

JavaScript String Object In this JavaScript tutorial you will learn about String Object purpose of string object in JavaScript purpose of string object indexof method lastIndexOf method and substring method along with syntax and example mosgoogle center Purpose of String Object in JavaScript The mai
 

JavaScript Date Object

JavaScript Date Object In this JavaScript tutorial you will learn about date object and methods of date object explained along with syntax and example mosgoogle center JavaScript Date Object Usage of Date Object Date object of Java Script is used to work with date and times General syntax for defini
 

What is Change Data Capture

Change Data Capture refers to the process of capturing changes which are made to a production data source. Change Data Capture is typically performed by reading the source of database management software logs. Some of the features of Change Data Capture are It consolidates units of works En
 

Convert a String into an Integer

How to convert a string into an integer in C program? This is done by using the function named as atoi(). This function atoi() is present in the header file named as <stdlib.h>. When programmers use this function they must include the header file by the statement #include <stdl
 

String handling functions

What is the string handling functions present in header file <string.h>? There are number of string handling functions present in string.h. In other words if a programmer uses any of the function present in string.h then they must include the header file as #include <string.h&am
 

Convert a String into Long Value

What string function is used to convert a string into long value? This is done by using the function named as atol() . This function atol() is present in the header file named as <stdlib.h>. When programmers use this function they must include the header file by the statement
 

Base Address of the String

What happens when we try to change the value of base address of the string? The base address of the sting takes a special place in the context of strings. This is because suing this base address only the string gets identified. In other words the base address therefore takes the position of constant
 

What are the Format Specifiers used with printf?

There are several format specifiers available in printf. The format specifier used varies depending on the data type used for printing. The given below are some of the format specifiers used with printf in C program. For integer data type the format specifier used with printf is %d or %i For float
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape