Skip to main content
Participant
October 24, 2011
Question

Can u help me in setting date in proper format in coldfusion form's output

  • October 24, 2011
  • 2 replies
  • 749 views

When i fire insert query at output i get date in format 1/1/1900 even if i type any date it shows as 1/1/1900.On the form it is displayed correctly but after submit button is pressed in output i get the date  in this format when i enter any date in the form as 01/01/1900.Can anyone please help already frustrated

This topic has been closed for replies.

2 replies

Inspiring
October 24, 2011

Are you using a dateformat() function?

October 24, 2011

Try this...

<cfoutput>#DateFormat(Now(), 'mm/dd/yyyy')# #TimeFormat(Now(), 'hh:mm tt')#</cfoutput>

Inspiring
October 24, 2011

You're gonna have to post some code if you want help, mate.

--

Adam