473,387 Members | 1,791 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 3915
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
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
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
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
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
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
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
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
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
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
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
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.