Advertisement

09.18.2007 at 03:10PM PDT, ID: 22837423
[x]
Attachment Details

Put null values or blank  instead of 01/01/1900 in Date fields on a coldfusion page.

Asked by saritharanjeeth in ColdFusion Studio, ColdFusion Application Server

Tags: null, sql, date, server

Hello,
Thanks a lot for ur help, really appreciate it.
I am inserting dates into SQL Server db using a coldfusion page, As u know if there is a blank date inserted into SQL SERVER db it inserts with 01/01/1900, and when i am lanching the page again, the page pullling up those date values stored in the db. If user selects a particular date and stores in the db, i am getting those dates. But user doesnt select a date on creation and while editing 01/01/1900 is being pulled into the screen. How could i eliminate these 01/01/1900 dates in the textfields of a coldfusion page, if no dates were selected.
Here is the example of the code:
*****************************************************************************
<td>
<cfset mulProdOnHoldDt =
getCSSProdHeadDetails('css_onhold_datestamp','#projectID#','#product_type#','#legacy_sys_type#')>
                              
<input size="8" readonly="" style="background:CCCCCC" name="preOnHoldDate_#i#"
            type="text" value="<cfif mulProdOnHoldDt neq "">#DateFormat(mulProdOnHoldDt)#</cfif> "/>
<a href="javascript:NewCal('preOnHoldDate_#i#','MMddyyyy')">
<img src="images/cal.gif" width="16"  height="16" border="0" alt="Pick a date"></a>      
</td>      
****************************************************************************
Any help would be really appreciated!! Thanks UStart Free Trial
 
Loading Advertisement...
 
[+][-]09.18.2007 at 04:15PM PDT, ID: 19917328

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: ColdFusion Studio, ColdFusion Application Server
Tags: null, sql, date, server
Sign Up Now!
Solution Provided By: SBennett
Participating Experts: 2
Solution Grade: A
 
 
[+][-]09.18.2007 at 05:31PM PDT, ID: 19917586

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628