DateTime to String =CStr(Fields!Date.Value)
String to DateTime =DateTime.Parse(Fields!DateTimeinStringFormat.Value)
String to DateTimeOffset =DateTimeOffset.Parse(Fields!DateTimeOffsetinStringFormat.Value)
Extracting the Year =Year(Fields!TimeinStringFormat.Value)
-- or --
=Year(Fields!TimeinDateTimeFormat.Value)
Boolean to Integer =CInt(Parameters!BooleanField.Value)
-1 is True and 0 is False.
Boolean to Integer =System.Convert.ToInt32(Fields!BooleanFormat.Value)
1 is True and 0 is False.
Just the DateTime part of a DateTimeOffset value =Fields!MyDatetimeOffset.Value.DateTime
Just the Offset part of a DateTimeOffset value =Fields!MyDatetimeOffset.Value.Offset