Monad = use structures from System namespace

Hey, did you know how to use structures from System namespace? Like DateTime for example?

It is quite easy - [structure]::StaticMethod.

For example to insert current date to variable $Today, you just need this line of code:

MSH> $Today = [DateTime]::Now()

or

MSH> $test = ([Guid]::NewGuid()).ToString()
MSH> $Test
16c40e94-05d2-4e4b-8a93-f1f832556aa2

 

 

Published Fri, Sep 16 2005 9:58 by martin
Filed under: