Call .NET functions

Category:
InterOp
Description: Invoke other .NET functions
Code:
let InterOpSample2() = 
let today = DateTime.Today
let tomorrow = today.AddDays(1.0)
let nextWeek = 7.0 |> today.AddDays
printfn "tomorrow = %A" tomorrow
printfn "nextWeek = %A" nextWeek

Execution Result:
tomorrow = 9/13/2011 12:00:00 AM
nextWeek = 9/19/2011 12:00:00 AM

Last edited Sep 14, 2011 at 3:04 AM by ttliu2000, version 1

Comments

No comments yet.