473,503 Members | 1,787 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Calendar

I'm working on a calendar-program.
I wonder what the best approach would be for storing the begin- and
end date/time for a particular calendaritem.
Right now I have two fields: Startdate and Enddate. Both date/time.
This is giving me terrible headaches when trying to let the user edit
time-part. Let's say startdate is '01/01/2003 22u15'. When I let the
user edit the 22u15 the datepart is set back to 1899 or something.
It's not the first problem I'm countering wit this one. So I begin to
wonder if it's better to store the startdate for instance in two
fields: startdate and starttime. Both of datatype date/time. Has
anyone got experience on this one? What could be the best approach?
thanks,
--
bebelino

Nov 12 '05 #1
5 3925
TS

"bebelino" <a.*@c.d> wrote in message
news:oo********************************@4ax.com...
I'm working on a calendar-program.
I wonder what the best approach would be for storing the begin- and
end date/time for a particular calendaritem.
Right now I have two fields: Startdate and Enddate. Both date/time.
This is giving me terrible headaches when trying to let the user edit
time-part. Let's say startdate is '01/01/2003 22u15'. When I let the
user edit the 22u15 the datepart is set back to 1899 or something.
It's not the first problem I'm countering wit this one. So I begin to
wonder if it's better to store the startdate for instance in two
fields: startdate and starttime. Both of datatype date/time. Has
anyone got experience on this one? What could be the best approach?
thanks,
--
bebelino


Since you were so helpful with my date problem....

Are you entering the entire date & time in the same field? '01/01/2003
22u15' in startdate? Or entering the date at one point and the time at
another? If you enter the full string in a general date formatted field,
both should remain as entered.

As you've found out, access date/time fields hold both date and time. When
you enter a time formatted field, a date of Dec 30, 1899 (or thereabouts) is
stored with the time just as 00:00 is stored with date formatted fields. It
is best to store them seperately if you want to enter them independently.

Ken
Nov 12 '05 #2
On Fri, 3 Oct 2003 23:56:12 +0100, "TS" <tw*******@yahoo.co.ku> wrote:

Thanks for your reply.
Are you entering the entire date & time in the same field? '01/01/2003
22u15' in startdate? Or entering the date at one point and the time at
another? If you enter the full string in a general date formatted field,
both should remain as entered.
Finally I have solved this problem.
As you've found out, access date/time fields hold both date and time. When
you enter a time formatted field, a date of Dec 30, 1899 (or thereabouts) is
stored with the time just as 00:00 is stored with date formatted fields. It
is best to store them seperately if you want to enter them independently.


The date and time are being edited seperatly, but still stored
together in one field.
I still wonder why it's better to store them seperately. Because it
seems to me there's more logic in putting the date and time together
in one field.
I hope off course I won't run into other troubles using this approach.
regards,
--
bebelino

Nov 12 '05 #3
On Fri, 3 Oct 2003 23:56:12 +0100, "TS" <tw*******@yahoo.co.ku> wrote:

Thanks for your reply.
Are you entering the entire date & time in the same field? '01/01/2003
22u15' in startdate? Or entering the date at one point and the time at
another? If you enter the full string in a general date formatted field,
both should remain as entered.
Finally I have solved this problem.
As you've found out, access date/time fields hold both date and time. When
you enter a time formatted field, a date of Dec 30, 1899 (or thereabouts) is
stored with the time just as 00:00 is stored with date formatted fields. It
is best to store them seperately if you want to enter them independently.


The date and time are being edited seperatly, but still stored
together in one field.
I still wonder why it's better to store them seperately. Because it
seems to me there's more logic in putting the date and time together
in one field.
I hope off course I won't run into other troubles using this approach.
regards,
--
bebelino

Nov 12 '05 #4
On Fri, 3 Oct 2003 23:56:12 +0100, "TS" <tw*******@yahoo.co.ku> wrote:

Thanks for your reply.
Are you entering the entire date & time in the same field? '01/01/2003
22u15' in startdate? Or entering the date at one point and the time at
another? If you enter the full string in a general date formatted field,
both should remain as entered.
Finally I have solved this problem.
As you've found out, access date/time fields hold both date and time. When
you enter a time formatted field, a date of Dec 30, 1899 (or thereabouts) is
stored with the time just as 00:00 is stored with date formatted fields. It
is best to store them seperately if you want to enter them independently.


The date and time are being edited seperatly, but still stored
together in one field.
I still wonder why it's better to store them seperately. Because it
seems to me there's more logic in putting the date and time together
in one field.
I hope off course I won't run into other troubles using this approach.
regards,
--
bebelino

Nov 12 '05 #5
bebelino <a.*@c.d> wrote in message news:<jv********************************@4ax.com>. ..
On Fri, 3 Oct 2003 23:56:12 +0100, "TS" <tw*******@yahoo.co.ku> wrote:

Thanks for your reply.
Are you entering the entire date & time in the same field? '01/01/2003
22u15' in startdate? Or entering the date at one point and the time at
another? If you enter the full string in a general date formatted field,
both should remain as entered.


Finally I have solved this problem.
As you've found out, access date/time fields hold both date and time. When
you enter a time formatted field, a date of Dec 30, 1899 (or thereabouts) is
stored with the time just as 00:00 is stored with date formatted fields. It
is best to store them seperately if you want to enter them independently.


The date and time are being edited seperatly, but still stored
together in one field.
I still wonder why it's better to store them seperately. Because it
seems to me there's more logic in putting the date and time together
in one field.
I hope off course I won't run into other troubles using this approach.
regards,


I would just store the date and time together. Access, I think,
stores the value as a double or something, where the integer part is
the date and the fractional part is the time...
Nov 12 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2080
by: Sugapablo | last post by:
Can someone recommend a very simple script to produce a web calendar? I just want something where I can select a month and year and it produces a very basic HTML table, 7 columns across, one...
2
14860
by: cg_news | last post by:
In short, what I am trying to do is, based on a date, calculate the week of year (as described in ISO 8601), then calculate the first and last date in this week period and return them in the format...
2
3400
by: Caesar Augustus | last post by:
First, let me start by saying my asp.net experience is still in it's infancy so please bare with me as I try to explain my situation. I have created a single page that with the use of many...
0
1685
by: R.A.M. | last post by:
Hello, I need to implement popup calendar in ASP.NET application. I created a button opening popup calendar on 'master' page: <asp:Button ID="Calendar" runat="server" Text=Calendar"...
1
2722
by: R.A.M. | last post by:
Hello, I need to implement popup calendar in ASP.NET application. I created a button opening popup calendar on 'master' page: <asp:Button ID="Calendar" runat="server" Text=Calendar"...
0
1990
by: GV | last post by:
Hi all, New to developing in VS 2005 ASP 2.0 Trying to have a easy pop calender for a button on a web page. I keep getting a error message in IE6 that says: Line 69 Char 3 Error:...
3
2702
by: thorpk | last post by:
I posted this problem earlier in the month and some one decided it was better to change the subject and ask a completely different question. I am therefore reposting. I am hoping some one can...
0
3313
by: mathewgk80 | last post by:
HI all, I am having popup calendar Javascript code. But i dont know how it is connecting to asp.net code.. I am using asp.net,c#.net and also using 3tier architecture with master page.... I...
4
3290
by: gubbachchi | last post by:
Hi all, Please anybody help me solve this problem. I am stuck up with this from past 2 weeks. I am developing an application where, when the user selects date from javascript datepicker and enters...
1
3692
by: abhishekbrave | last post by:
The code below is opening a calendar on mouse over in the same window. I need the calendar to be opened in new window. Have to fulfill this requirement urgentely so posting the whole code here. I...
0
7199
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7322
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6982
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7451
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5572
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5000
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3161
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1501
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.