Domino Code Fragment

Code Name*
Working with dates from an external data source
Date*
04/29/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.18.225.31.159
Description*
You are working on a Y2000 project. Your application reads data from an external source. You want all the dates read in to be convert to mm/dd/yyyy format. If you are thing about using the following code
Type*
Formula
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:

if IsDate(thestr) then
 thestr = Format("thestr","mm/dd/yyyy")
end if


Be careful!

String "1.25" may not look like a date to you, but it does to some Lotus Scrip functions..
IsDate("1.25") returns True and Format("1.25","mm/dd/yyyy") returns "12/31/1899".