From: "Vaughan Evans" <[EMAIL PROTECTED]>



> It seems that isDate() returns false when you pass it a date in julian
> format. Is this so?

[snip]

> 
> <cfoutput>#dateFormat(36852.6533681)#</cfoutput>
> 
> it outputs: 22-Nov-00
> 
> So if I have a list of values of which one item may be a Julian Date how do
> I find out if its a date or not?
> 

IsNumericDate()

All dates are stored and manipulated as points on a subset of the rational
numbers. Whether this is a congruent match for the julian timeline based
on the 1800 epoch is unknown. It is most likely congruent, but I can't
prove it.

Converting julian -> 'normal' is fairly easy with the cf datetime func.
(DateFormat and TimeFormat with judiciously applied masks produces
plug in values for CreateDateTime() as a set of values to combine, or,
if you mask  correctly for delimters, as a list to loop through)

Going the opposite way is a bit more work.

Pan 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to