PS C:\> 1+1 2 PS C:\> 12:00 + :30 Unexpected token ':00' in expression or statement. At line:1 char:6 + 12:00 <<<< + :30 PS C:\> a + b The term 'a' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again. At line:1 char:2 + a <<<< + b PS C:\> [string]"a" + [string]"b" ab PS C:\> "a" + "b" ab PS C:\> "a" | gm TypeName: System.String Name MemberType Definition ---- ---------- ---------- Clone Method System.Object Clone() CompareTo Method System.Int32 CompareTo(Object value), System.Int32 CompareTo(String strB) Contains Method System.Boolean Contains(String value) CopyTo Method System.Void CopyTo(Int32 sourceIndex, Char[] destination, Int32 destinationIn... EndsWith Method System.Boolean EndsWith(String value), System.Boolean EndsWith(String value, ... Equals Method System.Boolean Equals(Object obj), System.Boolean Equals(String value), Syste... GetEnumerator Method System.CharEnumerator GetEnumerator() GetHashCode Method System.Int32 GetHashCode() GetType Method System.Type GetType() GetTypeCode Method System.TypeCode GetTypeCode() get_Chars Method System.Char get_Chars(Int32 index) get_Length Method System.Int32 get_Length() IndexOf Method System.Int32 IndexOf(Char value, Int32 startIndex, Int32 count), System.Int32... IndexOfAny Method System.Int32 IndexOfAny(Char[] anyOf, Int32 startIndex, Int32 count), System.... Insert Method System.String Insert(Int32 startIndex, String value) IsNormalized Method System.Boolean IsNormalized(), System.Boolean IsNormalized(NormalizationForm ... LastIndexOf Method System.Int32 LastIndexOf(Char value, Int32 startIndex, Int32 count), System.I... LastIndexOfAny Method System.Int32 LastIndexOfAny(Char[] anyOf, Int32 startIndex, Int32 count), Sys... Normalize Method System.String Normalize(), System.String Normalize(NormalizationForm normaliz... PadLeft Method System.String PadLeft(Int32 totalWidth), System.String PadLeft(Int32 totalWid... PadRight Method System.String PadRight(Int32 totalWidth), System.String PadRight(Int32 totalW... Remove Method System.String Remove(Int32 startIndex, Int32 count), System.String Remove(Int... Replace Method System.String Replace(Char oldChar, Char newChar), System.String Replace(Stri... Split Method System.String[] Split(Params Char[] separator), System.String[] Split(Char[] ... StartsWith Method System.Boolean StartsWith(String value), System.Boolean StartsWith(String val... Substring Method System.String Substring(Int32 startIndex), System.String Substring(Int32 star... ToCharArray Method System.Char[] ToCharArray(), System.Char[] ToCharArray(Int32 startIndex, Int3... ToLower Method System.String ToLower(), System.String ToLower(CultureInfo culture) ToLowerInvariant Method System.String ToLowerInvariant() ToString Method System.String ToString(), System.String ToString(IFormatProvider provider) ToUpper Method System.String ToUpper(), System.String ToUpper(CultureInfo culture) ToUpperInvariant Method System.String ToUpperInvariant() Trim Method System.String Trim(Params Char[] trimChars), System.String Trim() TrimEnd Method System.String TrimEnd(Params Char[] trimChars) TrimStart Method System.String TrimStart(Params Char[] trimChars) Chars ParameterizedProperty System.Char Chars(Int32 index) {get;} Length Property System.Int32 Length {get;} PS C:\> 1 | gm TypeName: System.Int32 Name MemberType Definition ---- ---------- ---------- CompareTo Method System.Int32 CompareTo(Int32 value), System.Int32 CompareTo(Object value) Equals Method System.Boolean Equals(Object obj), System.Boolean Equals(Int32 obj) GetHashCode Method System.Int32 GetHashCode() GetType Method System.Type GetType() GetTypeCode Method System.TypeCode GetTypeCode() ToString Method System.String ToString(), System.String ToString(IFormatProvider provider), System.String ToS... PS C:\> [datetime]"12:00" | gm TypeName: System.DateTime Name MemberType Definition ---- ---------- ---------- Add Method System.DateTime Add(TimeSpan value) AddDays Method System.DateTime AddDays(Double value) AddHours Method System.DateTime AddHours(Double value) AddMilliseconds Method System.DateTime AddMilliseconds(Double value) AddMinutes Method System.DateTime AddMinutes(Double value) AddMonths Method System.DateTime AddMonths(Int32 months) AddSeconds Method System.DateTime AddSeconds(Double value) AddTicks Method System.DateTime AddTicks(Int64 value) AddYears Method System.DateTime AddYears(Int32 value) CompareTo Method System.Int32 CompareTo(Object value), System.Int32 CompareTo(DateTime value) Equals Method System.Boolean Equals(Object value), System.Boolean Equals(DateTime value) GetDateTimeFormats Method System.String[] GetDateTimeFormats(), System.String[] GetDateTimeFormats(IFormat... GetHashCode Method System.Int32 GetHashCode() GetType Method System.Type GetType() GetTypeCode Method System.TypeCode GetTypeCode() get_Date Method System.DateTime get_Date() get_Day Method System.Int32 get_Day() get_DayOfWeek Method System.DayOfWeek get_DayOfWeek() get_DayOfYear Method System.Int32 get_DayOfYear() get_Hour Method System.Int32 get_Hour() get_Kind Method System.DateTimeKind get_Kind() get_Millisecond Method System.Int32 get_Millisecond() get_Minute Method System.Int32 get_Minute() get_Month Method System.Int32 get_Month() get_Second Method System.Int32 get_Second() get_Ticks Method System.Int64 get_Ticks() get_TimeOfDay Method System.TimeSpan get_TimeOfDay() get_Year Method System.Int32 get_Year() IsDaylightSavingTime Method System.Boolean IsDaylightSavingTime() Subtract Method System.TimeSpan Subtract(DateTime value), System.DateTime Subtract(TimeSpan value) ToBinary Method System.Int64 ToBinary() ToFileTime Method System.Int64 ToFileTime() ToFileTimeUtc Method System.Int64 ToFileTimeUtc() ToLocalTime Method System.DateTime ToLocalTime() ToLongDateString Method System.String ToLongDateString() ToLongTimeString Method System.String ToLongTimeString() ToOADate Method System.Double ToOADate() ToShortDateString Method System.String ToShortDateString() ToShortTimeString Method System.String ToShortTimeString() ToString Method System.String ToString(), System.String ToString(String format), System.String T... ToUniversalTime Method System.DateTime ToUniversalTime() Date Property System.DateTime Date {get;} Day Property System.Int32 Day {get;} DayOfWeek Property System.DayOfWeek DayOfWeek {get;} DayOfYear Property System.Int32 DayOfYear {get;} Hour Property System.Int32 Hour {get;} Kind Property System.DateTimeKind Kind {get;} Millisecond Property System.Int32 Millisecond {get;} Minute Property System.Int32 Minute {get;} Month Property System.Int32 Month {get;} Second Property System.Int32 Second {get;} Ticks Property System.Int64 Ticks {get;} TimeOfDay Property System.TimeSpan TimeOfDay {get;} Year Property System.Int32 Year {get;} DateTime ScriptProperty System.Object DateTime {get=if ($this.DisplayHint -ieq "Date")... PS C:\> "12:00".getType() IsPublic IsSerial Name BaseType -------- -------- ---- -------- True True String System.Object PS C:\> ([dateTime]"12:00").getType() IsPublic IsSerial Name BaseType -------- -------- ---- -------- True True DateTime System.ValueType