Apex convert string to integer2/19/2024 ![]() System.assertEquals('',zConvert.ToString(date.newInstance(1960, 4, 17))) System.assertEquals('false',zConvert.ToString(false)) System.assertEquals('true',zConvert.ToString(true)) Public static String CurrencyToString(Decimal Value, String Currenc圜har)ĭefinitely useful, Sam. Public static String FileSizeToString(Long Value) * string representation if a Decimal value with or without Scientific Notation */ if (ScientificNotation) Public static String ToString(Decimal Value, Boolean ScientificNotation) * string representation if a Decimal value */ return Value.format() Public static String ToString(Decimal Value) * string representation if a Time value with formating */ĭatetime temp = Datetime.newInstance(1970, 1, 1, Value.hour(), Value.minute(), cond()) Public static String ToString(Time Value, String format) ![]() * string representation if a Time value */ return String.valueOf(Value) Public static String ToString(Time Value) * string representation if a Datetime value with formatting */ return Value.format(format) Public static String ToString(Datetime Value,String format) * string representation if a Datetime value */ return Value.format() Public static String ToString(Datetime Value) * string representation if a Date value with formatting */ĭatetime temp = Datetime.newInstance(Value.year(), Value.month(), Value.day()) Public static String ToString(Date Value,String format) * string representation if a Date value */ return Value.format() ![]() Public static String ToString(Date Value) ![]() * string representation if a Long value */ return Value.format() Public static String ToString(Long Value) * string representation if a Boolean value */ if (Value) Public static String ToString(Boolean Value) * string representation if a Double value */ return Value.format() Public static String ToString(Double Value) * string representation if an Integer value */ return Value.format() */ public static String ToString(integer Value) * * This Code is provided "As Is" without warranty of any kind. * Portions created by the Initial Developer are Copyright (C) 2008 * the Initial Developer. * The Initial Developer of the Original Code is Sam Arjmandi.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |