ODBiC Discussion Board

RE: $format() not working for dates in YYYY-MM-DD format, David Richardson, 05-08-2005

Try: SETOPTION date="ymd"

by Roger Harris, May 8, 2005 14:47

<% SETOPTION date="ymd" %> will set the date parsing to expect dates in year-month-day order. The 8-digit format yyyymmdd should always be recognized, regardless of the current date format mode, but I suspect you're getting yyyy-mm-dd from the database. That will be a valid date with the "ymd" setting.


Post Your Reply:

E-mail  optional

HTTP Link: 
Link text: 


Copyright ©1997-2003, Roger Harris. All rights reserved.