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 5 3941
"bebelino" <a.*@c.d> wrote in message
news:oo******** *************** *********@4ax.c om... 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
On Fri, 3 Oct 2003 23:56:12 +0100, "TS" <tw*******@yaho o.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
On Fri, 3 Oct 2003 23:56:12 +0100, "TS" <tw*******@yaho o.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
On Fri, 3 Oct 2003 23:56:12 +0100, "TS" <tw*******@yaho o.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
bebelino <a.*@c.d> wrote in message news:<jv******* *************** **********@4ax. com>... On Fri, 3 Oct 2003 23:56:12 +0100, "TS" <tw*******@yaho o.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... This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 month at a time, with the
dates filled in.
No frills, no nothing, just pure, month producing code.
--
|
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 CCYYMMDD. Sounds easy
enough, right??
I am attempting to accomplish this by creating a GregorianCalender which
will get me the week of year. Then by changing the day of week to 1 (start
of week) i'm trying the get the first day of the week,...
|
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 controls (i.e.
roundedcorners component www.4guysfromrolla.com], buttons and
panels) functions like a tab control. The buttons are
programmatically designed to make the corresponding panel visible.
Sample aspx.vb code:
|
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" OnClientClick=
"window.open('Calendar.aspx', 'Calendar',
'menubar=no, location=no, personalbar=no, status=no, resizable=no,
scrollbars=no, width=200, height=200');" />
|
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" OnClientClick=
"window.open('Calendar.aspx', 'Calendar',
'menubar=no, location=no, personalbar=no, status=no, resizable=no,
scrollbars=no, width=200, height=200');" />
| |
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: 'this.container' is null or not an object
|
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 assist with this.
Thanks in advance.
I have an access database that i have added a pop up calendar to, the
Table information for the Date Reported field is
Date/Time
format short date,
input mask is 00/00/0000.
|
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 would like to get the code for connecting the javascript to asp.net page...
Please help me...
The javascript code is as follows..
|
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 the comments and clicks the save button then the date and the date will be stored in the mysql database. This is working fine. But my problem is when, after the user had made an entry the date in the calendar for which an entry has made should be...
|
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 tried doing some workaround using window.open() but not getting the calendar in new window.
<html>
<head>
<script language="JavaScript">
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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 we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |