IPB

Google Frontpage Forums Unattended CD/DVD Guide
 
Reply to this topicStart new topic
> Delphi Date and Time Issiue, Any idea=?
bugrakorkmaz
post Jul 18 2008, 03:45 AM
Post #1





Group: Members
Posts: 2
Joined: 18-July 08
Member No.: 201423
OS: none
Country Flag


Hello All,
I am designing a software with Delphi 7 and I have forms on it.
My forms are connected to my MSSQL Server 2005 tables over AdoConnections and AdoTables.
On my form I have DBedits which are directly connected to a table in my database through DataSource.
A ss of my From is below;

As you can see I have DbDateTimepickers attachted on my form.What I am trying to do is;
A ss of what I want ;

I dont want to use Dbdatetimepickers.I want to seperate the date, the time and the schedule in to 3 parts.First section is to fillng the DATE
second is the Schedule from the Schedule icon and the 3rd part is the time section.
My questions:
  1. How could I separete the datetime value coming from my database in to 3 parts?
  2. When the user fills the required values into these 3 sections, when the user clicks on Ok/SAVE. How can I get those 3 values,combine and save to my database?

I will appriciate your interest of helping me..
Thanks.
Go to the top of the page
 
+Quote Post
bugrakorkmaz
post Jul 21 2008, 12:52 AM
Post #2





Group: Members
Posts: 2
Joined: 18-July 08
Member No.: 201423
OS: none
Country Flag


Can anyone help?
Go to the top of the page
 
+Quote Post
crahak
post Jul 21 2008, 01:26 AM
Post #3


Coffee Aficionado
********

Group: Members
Posts: 2994
Joined: 14-July 04
From: Coffeeland
Member No.: 24596
OS: Vista Ultimate x64
Country Flag


QUOTE (bugrakorkmaz @ Jul 21 2008, 02:52 AM) *
Can anyone help?

You will find that the number of delphi users nowadays is VERY low, so don't expect too much... I used to use it myself, but that was in the windows 95 era (10 years ago). It's been several years since I encountered anyone still using it too.

QUOTE (bugrakorkmaz @ Jul 18 2008, 05:45 AM) *
How could I separete the datetime value coming from my database in to 3 parts?

Delphi should have standard functions to get just the date, or just the time from a standard DateTime format.


QUOTE (bugrakorkmaz @ Jul 18 2008, 05:45 AM) *
When the user fills the required values into these 3 sections, when the user clicks on Ok/SAVE. How can I get those 3 values,combine and save to my database?

Same answer as the previous really. Delphi should have standard functions to generate standard DateTime format from separate date and time values. Then use that to update the database.
Go to the top of the page
 
+Quote Post
Glenn9999
post Aug 1 2008, 11:13 PM
Post #4


Member
**

Group: Members
Posts: 277
Joined: 23-April 07
Member No.: 136800
OS: XP Home
Country Flag


There are people using Delphi, but you need to work to find them, as was said. I use it, but purely from a hobbyist standpoint (I learned on Pascal, and Delphi was the easiest transition that fitted my budget and my tolerance level).

As for your problem, I'm not well-versed in the database end of what you're doing with Delphi. But if I understand your problem right (and I'm not sure), you're pulling TDateTime from your database and you would rather have it show in a TEdit style structure instead of the DBDateTimePicker? As was stated, there are several functions in SysUtils that should make that transition for you easily.
Go to the top of the page
 
+Quote Post

Google Frontpage Forums Unattended CD/DVD Guide

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 7th January 2009 - 05:07 PM
All trademarks mentioned on this page are the property of their respective owners
MSFN is not affiliated with Microsoft
Copyright © 2001-2008 msfn.org
Privacy Policy