how can i do this in c#?

Fuction GetInt(ds as DateTime) as Integer

End Fuction