Skip to main content
Email Password   helpLost your password?

Introduction

DaintyDate is a custom control for Microsoft Visual Studio .NET that replaces the ASP.NET datepicker with many extra cool features including JavaScript date navigation (No Postbacks!) and a range of Dynamic popup features!

Save valuable development time and page space with pre-configured styles and dynamic popups formats that enhance user experience and make deployment completely trouble free.

Page forwards and backwards or go direct to a date by selecting a month or year from the popup menus. DaintyDate gives users quick access to any date without posting a single request to the web server allowing target dates to be reached within seconds.

All JavaScript, styles and images are embedded into the control so you never need worry about ensuring resource files are located in the correct location.

Update - 27th Feb 2007

Now supports Null dates and quick access buttons!

Update - 18th Feb 2007

Finally DaintyDate is Opera compatible! A few tweaks were made to event capturing and now the control can be used in all main browsers including Internet Explorer, Firefox and Opera.

There has also been a number of requests for multiple date formats (especially from you Swedish guys) so now the Datepicker supports all day, month and year combinations according to the microsoft .NET standard
http://msdn2.microsoft.com/en-us/library/8kb3ddd4.aspx

d -Represents the day of the month as a number from 1 through 31. A single-digit day is formatted without a leading zero.

dd - Represents the day of the month as a number from 01 through 31. A single-digit day is formatted with a leading zero.

ddd - Represents the abbreviated name of the day of the week as defined in the current System.Globalization.DateTimeFormatInfo.AbbreviatedDayNames property.

dddd - Represents the full name of the day of the week as defined in the current System.Globalization.DateTimeFormatInfo.DayNames property.

M - Represents the month as a number from 1 through 12. A single-digit month is formatted without a leading zero.

MM - Represents the month as a number from 01 through 12. A single-digit month is formatted with a leading zero.

MMM - Represents the abbreviated name of the month as defined in the current System.Globalization.DateTimeFormatInfo.AbbreviatedMonthNames property.

MMMM -Represents the full name of the month as defined in the current System.Globalization.DateTimeFormatInfo.MonthNames property.

Examples:

dddd dd MMMM yyyy - Friday 09 February 2007
dd - MM - yyyy - 09 - 02 - 2007
dd of MMMM in yyyy - 18 of February in 2007


Don't forget to vote!

Bugs

If you find and fix a bug please send me the source with the new code areas clearly identified. Thanks!

You must Sign In to use this message board.
 
 
Per page   
 FirstPrevNext
GeneralMy vote of 2
eddie2046
3:15 12 Sep '09  
Download takes you to site with popups not code. Missing files from backup site download.
Sign In·View Thread·PermaLink
AnswerNot working with Master Page
Senthilkumar Elangovan
9:22 8 Apr '09  
"Not working with Master Page" seems to be a common problem that everybody else are also facing. I found a work around though it may not be optimizable but working Smile

- Place another hidden text control next to the calendar control.
- Onclick of calendar control set the value of selected date into the hidden text control.
- Use the hidden text control to set the selected date of calendar control on post back.

Note: The ID of textbox in which the selected date is shown in calendar control is always concatenation of "txt" and calendarcontroluniqueid with all "$" sign replaced with "a".

In Aspx


<script>
function SetSelectedDate(calendarTxtId,hiddenTxtId)
{
document.getElementById(hiddenTxtId).value=document.getElementById(calendarTxtId).value;
}

</script>
<input type='hidden' id='txtHidden' runat="'server'" />



In Code behind

//put this entire code in page load with out any condition for post back check

mycalendarControl.Attributes.Add("OnClick","SetSelectedDate('txt" + mycalendarControl.UniqueId.Replace("$","a") + "','" + txtHidden.ClientId + "');");

if(txtHidden.Value.Length>0)
{
mycalendarControl.SelectedDate=Convert.ToDateTime(txtHidden.Value);
}


Sign In·View Thread·PermaLink
QuestionDate is refreshed to Current Date after POSTBACK in IE ( with Master Page )
kirusan
11:04 28 Oct '08  
Hi..

Date is refreshed to Current Date after POSTBACK in IE ( With Master Page ). Can you help to go forward.

Thanks in advance
Kiru
Sign In·View Thread·PermaLink
AnswerRe: Date is refreshed to Current Date after POSTBACK in IE ( with Master Page )
Sumair Pervaiz
13:24 19 Dec '08  
I am having the same problem. I am using a master page and after the PostBack the DaintyDate control's SelectedDate is set back to original initial date. It loses the date that the user has picked before the PostBack.

Please HELP!
Sign In·View Thread·PermaLink2.00/5
GeneralRe: Date is refreshed to Current Date after POSTBACK in IE ( with Master Page )
PChott
20:23 11 Jun '09  
Did u find any solution for the problem? I'm thinking about options, like to save in session or some control.
Sign In·View Thread·PermaLink1.00/5
GeneralSQL Date Out of Range
RJDust
17:50 27 Jul '08  
I love this control. It renders great.

When I bind an SQL Date column to the control and then use it in an Update statement however, the column does not get updated. Has anyone used this control as a bound column? Can you help guide me how to use it.

Bob
Sign In·View Thread·PermaLink
GeneralNot sure the problem is with the data bind
RJDust
17:22 28 Jul '08  
No matter what I do when I render the control and change the date, the "Selected Date" does not change. I am sure that I am missing something basic here, but it beats me what it is. It looks straight forward. Can someone please help?
Sign In·View Thread·PermaLink
QuestionDainty date and Safari (3.1)
jcprince
7:12 15 May '08  
Are there any changes I need to make to make this work in Safari for windows. Works well on all other browsers

Thanks for a great control
Sign In·View Thread·PermaLink
GeneralControl Returns '1/1/0001' when used with Master Page in .net 2.0..
kirusan
14:37 8 Apr '08  
Hi Lawrence Botley

AWESOME !! ... Great Work Big Grin

But Control Returns '1/1/0001' when used with Master Page in .net 2.0..

It will helpful if you can fix this for me.

Thanks
kiru
Sign In·View Thread·PermaLink
GeneralRe: Control Returns '1/1/0001' when used with Master Page in .net 2.0..
dagma20
23:20 14 May '08  
I had that problem. The way to fix is to set your datevalue as DateTime.Now(). Then when the calendar is loaded it will point to the current date.
Sign In·View Thread·PermaLink
GeneralDays dont match up with correct dates for 2008!! [modified]
DDM
1:49 9 Jan '08  
For January only.. the day names are two days on?? Seems fine for Feb, Mar etc.

modified on Wednesday, January 09, 2008 7:01:27 AM

Sign In·View Thread·PermaLink2.00/5
QuestionCalendar magically disappears
Tim Vandeweerd
10:35 10 Oct '07  
Using "Image and Button Popup" style

situation 1

click on image to right of textbox
calendar correctly appears
click on "Previous month button" (left black arrow to left of month name)
calendar correctly moves to previous month
click on "Next month button" (right black arrow to right of month name)
calendar incorrectly disappears

situation 2

click on image to right of textbox
calendar correctly appears
click on "Next month button" (right black arrow to right of month name)
calendar correctly moves to next month
click on "Previous month button" (left black arrow to left of month name)
calendar incorrectly disappears

Sign In·View Thread·PermaLink2.00/5
GeneralRe: Calendar magically disappears
AmoebaCowboy
6:21 6 Mar '08  
Further to both situations above, if you click on Previous Month arrow twice, then click the Next Month arrow twice, the calendar will disappear.

The pattern is that if you click one of the arrows N times, then immediately click the opposite arrow N times, the calendar will disappear.

This will also cause the calendar to disappear:

Previous
Previous
Previous
Next
Previous
Next
Next
Next

As will this:

Previous
Previous
Previous
Next
Next
Previous
Previous
Next
Next
Next

I'm using the build that contains lib.js dated 12 Jan 2007.
Sign In·View Thread·PermaLink
QuestionWhere is: "Update - 27th Feb 2007"?
Tim Vandeweerd
4:25 10 Oct '07  
Does anyone know where to download the "Update - 27th Feb 2007"?

The link at top of page "Download Source Latest Examples files (recommended)" is not helpful.
Sign In·View Thread·PermaLink
Questioncan control be absolutely positioned? [modified]
Tim Vandeweerd
11:02 9 Oct '07  
When I make the dropdown version absolutely positioned the month and year selections show elsewhere on screen? I tried putting the control in an absolutely positioned div. That did not help.
Sign In·View Thread·PermaLink
GeneralDoes anyone have the version that supports null dates?
JohnAsbaghi.com
10:51 9 Oct '07  
Does anyone have the version that supports null dates? BTW, I have installed the dainty date pickers on my website here:
http://myfinancetools.com/datepickerdemo/
Sign In·View Thread·PermaLink1.00/5
GeneralRe: Does anyone have the version that supports null dates?
AmoebaCowboy
6:01 6 Mar '08  
Hi, I'm also looking for that version. Did you have any lucking locating it? Thanks.
Sign In·View Thread·PermaLink5.00/5
GeneralRe: Does anyone have the version that supports null dates?
AmoebaCowboy
4:19 7 Mar '08  
I found a version here. Not sure which version it is but the daintydate.cs file is dated 09 Oct 2007.

http://rs16.rapidshare.com/files/85380868/DaintyDate.zip
Sign In·View Thread·PermaLink
GeneralRe: Does anyone have the version that supports null dates?
vishal123456789
9:29 11 Mar '09  
Thanks ..
it solved my all problems

This link very usefull
http://rs16.rapidshare.com/files/85380868/DaintyDate.zip [^]
Sign In·View Thread·PermaLink2.00/5
GeneralHelp needed urgently
Twinkle Pathak
21:47 20 Sep '07  
Hey guys, can anyone reply to my query ...

i m stuck and cannot proceed further for using DaintyDate in my master page....

how do i make my dll for changed source code????

I m using Visual Web Developer 2005 , where the given source code does not open...

Any help will be really useful...

Thanks in advance
Sign In·View Thread·PermaLink
GeneralProblem when used with Master Page
Twinkle Pathak
2:09 20 Sep '07  
Control is pitty cool.... N i have opted to use this control in my project...

I m facing a issue.... it doesnt work fine when used with Master page..

I went through entire forum and found the code to change in DaintyDate.cs file..... but could u tell me wat shud be done next.....

I think i need to rebuild the dll file and use it in my project..

can u suggest me the way to do this???

Please its very urgent ....

Thanks in advance
Sign In·View Thread·PermaLink2.00/5
GeneralRe: Problem when used with Master Page
Arvind Srivastava
21:40 29 Oct '07  
I am also getting problem .Date is selected in control but It shows default date on server side??
Sign In·View Thread·PermaLink1.00/5
GeneralBug when DaintyDate is used as user control
Ghistos
8:47 5 Sep '07  
I have a "Request is not available in this context" when using the DaintyDate as an ascx and trying to retrieve the selected date.

I modified the Text property of the DaintyDate like this and now, everything work fine.


if (base.Page.IsPostBack)
base.Page.Request.Form[this.GetInstanceID()];
return base.ViewState["txtValue"] as String ?? String.Empty;

Modified code

if (base.Page.IsPostBack)
return HttpContext.Current.Request.Form[this.GetInstanceID()];
return base.ViewState["txtValue"] as String ?? String.Empty;

Sign In·View Thread·PermaLink
GeneralThe link to http://www.customcontrolfreak.com not working
Ghistos
8:35 29 Aug '07  
Is the other link is up to date ?
Sign In·View Thread·PermaLink
GeneralThanks
arslantik
22:08 14 Aug '07  
This is exactly what I am looking for.

Thanks friend.
Sign In·View Thread·PermaLink


Last Updated 10 Apr 2007 | Advertise | Privacy | Terms of Use | Copyright © CodeProject, 1999-2009