Click here to Skip to main content
15,886,664 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have created one table for category items...in that i mentioned lastupdateddate of type datetime datatype...i m developing this application in 3 tier architecture...in business layer how to mention the datetime datatype and how to convert it in date time to save in table
Posted
Comments
Prasad_Kulkarni 30-Mar-12 9:36am    
can you give a simple code example??
in which data type you want to convert it.?
and please clarify this "in business layer how to mention the datetime datatype and how to convert it in date time to save in table"
am really unable to get it.?
[no name] 30-Mar-12 10:02am    
Pretend that we are not sitting next to you and have been working on the project the entire time. Now, explain what you want to accomplish, what you have tried and what problems you are encountering.
wizardzz 30-Mar-12 10:48am    
You aren't psychic?
[no name] 30-Mar-12 10:58am    
They took that power away from me when I was exiled on this planet.
[no name] 30-Mar-12 11:50am    
Why do you need to convert a DateTime type to a DateTime type to begin with?

1 solution

Many of the .NET types support the TypeConverter:
TypeConverter converter = TypeDescriptor.GetConverter(targetType);
return converter.ConvertFrom(value);

You can read about it in my article Generic WPF/Silverlight Value Converter[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900