# New Date Widget

**URL:** <https://community.open-emr.org/t/new-date-widget/7213>\
**Category:** OpenEMR Development\
**Created:** [June 29, 2006, 4:27pm UTC](https://community.open-emr.org/t/new-date-widget/7213 "2006-06-29T16:27:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [June 29, 2006, 4:27pm UTC](https://community.open-emr.org/t/new-date-widget/7213/1 "2006-06-29T16:27:02Z")

</div>

**[sunsetsystems](https://sourceforge.net/u/sunsetsystems/)** wrote on [Thursday, June 29, 2006](https://sourceforge.net/p/openemr/discussion/202506/thread/c9d4379e/#15d2):

This is to announce that I have found and tried out an excellent replacement for the old popup calendar widget.&nbsp; Most importantly it solves the problem with IE where some form fields such as \<select\> lists were bleeding through.&nbsp; In addition the new widget is nicer and more versatile.

The license is LGPL.&nbsp; You can learn more about it at:

[http://www.dynarch.com/projects/calendar/](http://www.dynarch.com/projects/calendar/)

I have checked in the following new files from this project (with new names to keep it clean for us):

openemr/library/dynarch\_calendar.js  
openemr/library/dynarch\_calendar\_en.js  
openemr/library/dynarch\_calendar\_setup.js  
openemr/library/dynarch\_calendar.css

So far I’ve put this into only three OpenEMR source modules:

interface/main/calendar/add\_edit\_event.php  
interface/main/calendar/modules/PostCalendar/pntemplates/default/views/day/default.html  
interface/main/calendar/modules/PostCalendar/pntemplates/default/views/week/default.html

You can see the changes required to make the switch by running this command, assuming you have  
a current CVS checkout:

cvs diff -r 1.7 -r 1.8 interface/main/calendar/add\_edit\_event.php

I won’t have time to get back to this for a week or two.&nbsp; If anyone is interested in similarly changing the remaining places in OpenEMR that use popup calendars, please leave a note here to avoid any duplicated effort.

Rod  
[www.sunsetsystems.com](http://www.sunsetsystems.com)

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [July 2, 2006, 12:17pm UTC](https://community.open-emr.org/t/new-date-widget/7213/2 "2006-07-02T12:17:11Z")

</div>

**[drbowen](https://sourceforge.net/u/drbowen/)** wrote on [Sunday, July 02, 2006](https://sourceforge.net/p/openemr/discussion/202506/thread/c9d4379e/#15d2/7b49):

Thanks Rod for all that you do for us.

Sam Bowen, MD

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [July 8, 2006, 11:35pm UTC](https://community.open-emr.org/t/new-date-widget/7213/3 "2006-07-08T23:35:23Z")

</div>

**[drbowen](https://sourceforge.net/u/drbowen/)** wrote on [Saturday, July 08, 2006](https://sourceforge.net/p/openemr/discussion/202506/thread/c9d4379e/#15d2/8883):

I’m liking all the new additions.

Ron McDaniel had this to say about the date widget:

"""It would be nice if the button used for the date picker was also used on the "Billing View" to assist in choosing the date. It should be used throughout the program for consistency and to reduce user error. Just a thought."""

Seems like a good idea to me.&nbsp; Ron McDaniel describes himself as "IT Director for school system, consultant/engineer"

Sam Bowen

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [July 9, 2006, 1:19am UTC](https://community.open-emr.org/t/new-date-widget/7213/4 "2006-07-09T01:19:02Z")

</div>

**[sunsetsystems](https://sourceforge.net/u/sunsetsystems/)** wrote on [Sunday, July 09, 2006](https://sourceforge.net/p/openemr/discussion/202506/thread/c9d4379e/#15d2/8883/9269):

Agree 100%.&nbsp; It would not be difficult, I just don’t happen to have any funding for that item at the moment.

Rod  
[www.sunsetsystems.com](http://www.sunsetsystems.com)

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [July 9, 2006, 4:30am UTC](https://community.open-emr.org/t/new-date-widget/7213/5 "2006-07-09T04:30:31Z")

</div>

**[markleeds](https://sourceforge.net/u/markleeds/)** wrote on [Sunday, July 09, 2006](https://sourceforge.net/p/openemr/discussion/202506/thread/c9d4379e/#15d2/9773):

I agree with the date widget everywhere idea too.&nbsp; I think I tried to do it a while back and it was not the quick cut&paste job I thought it would be.

Regarding the billing page, what about filtering by patient id and/or primary insurance company?&nbsp; I have this working in my version and I have found it to be useful, especially when I had to reprint all of my medicare claims because of a date and zip code problem.

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [July 9, 2006, 7:33am UTC](https://community.open-emr.org/t/new-date-widget/7213/6 "2006-07-09T07:33:52Z")

</div>

**[markleeds](https://sourceforge.net/u/markleeds/)** wrote on [Sunday, July 09, 2006](https://sourceforge.net/p/openemr/discussion/202506/thread/c9d4379e/#15d2/b3de):

I just added the new date widget to the billing report page for the From and To dates.

The changes are committed, so try it out.&nbsp; You can most likely just replace the one file with no problem:

openemr/interface/billing/billing\_report.php
