Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#18 'Identify.asp' -> 'Function GetEarliestDatestamp'

VB Provider
open
nobody
None
5
2004-08-17
2004-08-17
Thomas G. Habing
No

I have a bug to report.

In 'Identify.asp' -> 'Function GetEarliestDatestamp',
the following code:

If (rs.EOF) Then
EarliestDatestamp = "2002-01-01"
Else
dts = rs("Minimum")
GetEarliestDatestamp = Year(dts) & "-" &
Left("00",2-Len(Month(dts))) & Month(dts) & "-" &
Left("00",2-Len(Day(dts))) & Day(dts)
End If

Should be:

dts = rs("Minimum")
If IsNull(dts) Then
GetEarliestDatestamp = "2002-01-01"
Else
GetEarliestDatestamp = Year(dts) & "-" &
Left("00",2-Len(Month(dts))) & Month(dts) & "-" &
Left("00",2-Len(Day(dts))) & Day(dts)
End If

Discussion

  • -1'

     
  • 1

     
  • Thank you for sharing excellent informations. Your web site is so cool. I am impressed by the details that youve on this web site. It reveals how nicely you perceive this subject. Bookmarked this website page, will come back for extra articles. You, my pal, ROCK! I found simply the information I already searched everywhere and simply couldn't come across. What a perfect web site.
    <a href="http://mimiwhm.journalspace.com/" title="wherechoicecheaperwowpo">wherechoicecheaperwowpo</a>

     
  • -1'