🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.database.dotnet
Article #133

Datagrid: formatting DateTime to Time only

#133
From: Brigitte Spatz
Date: Thu, 05 Oct 2006 08:02
9 lines
1360 bytes
I have a DateTimePicker where I have set custom format to HH:mm. The 
user enters a time in there, it gets saved to an SQL-Server DB table, 
alas as today's date plus the time the user has entered. And it's 
displayed the same in my datagrid. Is there any way to either save it as 
time only or as displaying it as time only?

TIA.

Brigitte
Technical Details
Message-ID: <4524bc05$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1effe6,b5560ba8d4f50118,start
X-Google-Attributes: gid1effe6,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 05 Oct 2006 10:02:01 +0200
From: Brigitte Spatz <brigitteNOSPAM.spatz@svenmahn.de>
Organization: Sven Mahn IT-Systementwicklungen
User-Agent: Thunderbird 1.5.0.7 (Windows/20060909)
MIME-Version: 1.0
Newsgroups: borland.public.delphi.database.dotnet
Subject: Datagrid: formatting DateTime to Time only
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Antivirus: avast! (VPS 0640-2, 04/10/2006), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 217.189.151.221
Message-ID: <4524bc05$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1160035333 217.189.151.221 (5 Oct 2006 01:02:13 -0700)
Lines: 9
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail