date always display 31 Dec 1899

Posted on 2004-10-30
Medium Priority
Last Modified: 2013-12-24
Coldfusion MX
MS SQL 2000


when try to output it displays:

the date always display 31 Dec 1899. What should i do, I am stuck.
Please let me know if you need complite code. There is no error.
Question by:matlowson
LVL 21

Accepted Solution

pinaldave earned 2000 total points
ID: 12455322
this is your problem
When you do this it will always set it to 31 Dec 1899. As this is default value for windows or coldfusion

what date you want you should do soemthing like this...

<cfset begindate = now()>

you can also use dateforma from http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/functi59.htm#wp1103264

Author Comment

ID: 12460626
I guess I figured it out. Your answer helped me partially. Also no other expert have any comments here. I will close the question soon.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
Suggested Courses

619 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question