Subscribe to Subscribers
Talk to Webmaster Tony John

Online Members

prasad
More...


Forums » .NET » .NET »

Date and Time Control


Posted Date: 17 Jun 2010      Posted By:: Narasimha     Member Level: Silver    Member Rank: 2040     Points: 1   Responses: 1




Hi all,

How to change datetime control format at run time and how to get and convert date and time formates into customized format

Like :
dd/MM/yyyy
mm/dd/yyyy






Responses

#517722    Author: Lion      Member Level: Gold      Member Rank: 117     Date: 17/Jun/2010   Rating: 2 out of 52 out of 5     Points: 2

Hi, For mm/dd/yyyy

Select CONVERT (nvarchar(10), GETDATE(),102)

For dd/mm/yyyy

Select CONVERT (nvarchar(10), GETDATE(),103)

Hope it will help ful

Thanks & Regards
Lion
Jaipur (Pink City) India
My Blog



 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : File Header
Previous : Serial Number in RDLC report.
Return to Discussion Forum
Post New Message
Category:

Related Messages



Follow us on Twitter: https://twitter.com/dotnetspider

Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.