x

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

Hesham gravatar image

Hesham
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

mrdenny gravatar image

mrdenny
908 3

(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.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

SQL Server Central

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

Topics:

x94

asked: Oct 18, 2009 at 08:52 PM

Seen: 863 times

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