Author |
Topic |
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 21 August 2002 : 00:42:46
|
I'm getting a problem where dDate is looking like this:
8/20/2002 7:00:00PM
Happens on this site (you can check it, I updated the file on this site), and on one other site I have tested it on. On the PC I am on right now, this does not happen.
This happens when the Request("date") is empty, so dDate is being defined like this:
dDate = DateAdd("yyyy", -13, strForumTimeAdjust)
|
|
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 21 August 2002 : 03:10:07
|
What is the error you are getting? I did not get any error? |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 21 August 2002 : 03:14:36
|
no error, but if the DOB is empty when you click on the button, there isn't a default date highlighted on the calendar. Plus in the querystring for the next and previous links, it has both the date and the time.
I tried splitting the date string before displaying it so it only had the date in it, but it still would not bring up the default date when the DOB was empty.
And I tried using FormatDate(dDate,2) as well, but it still won't show the default date highlighted. For some reason dDate is not equal to dCell |
|
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 21 August 2002 : 03:26:39
|
Add this statement in red just below the statement you mentioned as shown below:
dDate = DateAdd("yyyy", -13, strForumTimeAdjust) dDate = DateValue(dDate)
This should take care of the time part.
I will check about the default date not being shown.
<EDIT>(I will be away for few hours, I will post an update when I come back) |
Edited by - GauravBhabu on 21 August 2002 03:40:42 |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 21 August 2002 : 04:57:08
|
Adding that line fixed the default date problem. I don't see any problems with it on the servers I have checked it on. |
|
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 21 August 2002 : 06:45:52
|
Great! I don't think there will be any problem now. |
|
|
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 21 August 2002 : 06:58:55
|
for those of us that are stupid (ie me)..
Could you paste the correct code? unless it's in here somewhere already... |
Eagles fly!, but weasels don't get sucked into jet engines. |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
|
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 21 August 2002 : 07:06:41
|
Thanks Richard |
Eagles fly!, but weasels don't get sucked into jet engines. |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 21 August 2002 : 07:08:18
|
we need to thank GauravBhabu for fixing the date problems. |
|
|
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 21 August 2002 : 07:11:30
|
I think we should buy GauravBhadu a coffee/beer at least. Heck they have fixed a bundle of stuff. Either they (and several other people) never sleep or I need to take something to speed me up - I get there in the end.. but.. ya know..
I'll shut up now.. |
Eagles fly!, but weasels don't get sucked into jet engines. |
|
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 21 August 2002 : 07:22:24
|
Look here
Richard, I hope you have included the changed inc_datepicker.js also in the zip.
quote: we need to thank GauravBhabu for fixing the date problems.
Any time. I am glad everyone can use it now.
quote: I think we should buy GauravBhadu a coffee/beer at least. Heck they have fixed a bundle of stuff. Either they (and several other people) never sleep or I need to take something to speed me up - I get there in the end.. but.. ya know..
Beer, Never. However, Getting there is key...so you know...
I love dates. There are several varaities, whatever way you think. |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 21 August 2002 : 07:25:57
|
quote: Originally posted by GauravBhabu
Richard, I hope you have included the changed inc_datepicker.js also in the zip.
Yes, I did. |
|
|
HarshReality
Junior Member
USA
128 Posts |
Posted - 21 August 2002 : 10:06:07
|
Ok help me out here, am I misunderstanding this functioning? (Using files from Richards Zip)
"GO" is to change the month/Year view. "Clear DOB" is setting it to the current date.
and to enter a date into the field in the database you simply (after selecting month and year and clicking GO) click on the appropriate date. Thus entering month year and day selected into the DB as your DOB.
The question I have is this, ALL links in the cal. no matter what month I select are coming up javascript:returnDate('19890825'); and entering it in by default. So it seems changing the month etc. has no effect on the date entered to the DB.
Or have I missed an addition somewhere outside of the 2 files richard posted above?? |
Anti Social Personality |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 21 August 2002 : 10:11:34
|
Clear DOB is for in case someone wants to remove their DOB. Go will change the month/year after you have changed it in the dropdowns. to select a date to enter as your DOB, just click on that date on the calendar. |
|
|
Topic |
|