How can I format my datetime value in a Windows forms application

hi there

i have Column called OrderDate and its contain Data already entered by Datetimepicker control so if i want to format and customize my Date to become as i want from right to left and remove time and show it on my Gridview or any textbox control how can i accomplish that

more ▼

asked Oct 18, 2009 at 08:52 PM in Default

avatar image

12 1 1 1

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

Use the formatdate function of .NET to change the formatting. Formatting should always be handled at the front end, not by the database.

more ▼

answered Oct 19, 2009 at 01:47 AM

avatar image

938 2 5

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.



asked: Oct 18, 2009 at 08:52 PM

Seen: 1056 times

Last Updated: Oct 19, 2009 at 10:25 AM

Copyright 2018 Redgate Software. Privacy Policy