x
login about faq Site discussion (meta-askssc)

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 '09 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 newest

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 '09 at 01:47 AM

mrdenny gravatar image

mrdenny
897 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.

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



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x84

asked: Oct 18 '09 at 08:52 PM

Seen: 551 times

Last Updated: Oct 19 '09 at 10:25 AM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.