3 people like it.

FSharp.Date examples

A few short usage examples for the FSharp.Date Type Provider (available on Nuget).

 1: 
 2: 
 3: 
 4: 
 5: 
 6: 
 7: 
 8: 
 9: 
10: 
11: 
open FSharp.Date

type Date = DateProvider<epoch=2010>

let today = Date.``2014``.``04``.``26``

let lastSaturdayOfApril =
   Date.``2014``.``04``.Saturday.``26``

let todayWithMonthName =
   Date.``2014``.April.``26``
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp
namespace FSharp.Date
type Date = DateProvider<...>

Full name: Script.Date
type DateProvider

Full name: FSharp.Date.DateProvider
val today : System.DateTime

Full name: Script.today
val lastSaturdayOfApril : System.DateTime

Full name: Script.lastSaturdayOfApril
val todayWithMonthName : System.DateTime

Full name: Script.todayWithMonthName
Raw view New version

More information

Link:http://fssnip.net/mD
Posted:3 years ago
Author:Phillip Trelford
Tags: dates