{hidden}
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
		THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden}
{sub-section:description|text=}{sub-section}\\{table:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}Object{td}{td}[#dateFormat]\(date, format)
Format a date object to a text representation or a parses a datestring to a date object.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getUnicodeCharacter]\(unicodeCharacterNumber)
Returns a string containing the character for the unicode number.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#hasRecords]\(foundset_or_record, qualifiedRelationString)
Returns true if the (related)foundset exists and has records.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#isMondayFirstDayOfWeek]\()
Returns true when Monday is the first day of the week for your current locale setting.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#numberFormat]\(number, digitsOrFormat)
Format a number to specification (or to have a defined fraction).{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#stringEscapeMarkup]\(textString, escapeSpaces, convertToHtmlUnicodeEscapes)
Returns the escaped markup text (HTML/XML).{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#stringFormat]\(text_to_format, parameters_array)
Formats a string according to format specifiers and arguments.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#stringIndexReplace]\(textString, i_start, i_size, replacement_text)
Replaces a portion of a string with replacement text from a specfied index.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#stringInitCap]\(text)
Returns all words starting with capital chars.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#stringLeft]\(textString, i_size)
Returns a string with the requested number of characters, starting from the left.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#stringLeftWords]\(text, numberof_words)
Returns the number of words, starting from the left.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#stringMD5HashBase16]\(textString)
Returns the md5 hash (encoded as base16) for specified text.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#stringMD5HashBase64]\(textString)
Returns the md5 hash (encoded as base64) for specified text.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#stringMiddle]\(textString, i_start, i_size)
Returns a substring from the original string.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#stringMiddleWords]\(text, i_start, numberof_words)
Returns a substring from the original string.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#stringPatternCount]\(textString, searchString)
Returns the number of times searchString appears in textString.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#stringPosition]\(textString, searchString, i_start, i_occurrence)
Returns the position of the string to seach for, from a certain start position and occurrence.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#stringReplace]\(text, search_text, replacement_text)
Replaces a portion of a string with replacement text.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#stringReplaceTags]\(text, foundset_or_record)
Returns the text with % %tags%% replaced, based on provided record or foundset.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#stringRight]\(textString, i_size)
Returns a string with the requested number of characters, starting from the right.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#stringRightWords]\(text, numberof_words)
Returns the number of words, starting from the right.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#stringToNumber]\(textString)
Filters characters out of from a string and leaves digits, returns the number.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#stringTrim]\(textString)
Returns the string without leading or trailing spaces.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#stringWordCount]\(textString)
Returns the number of words in the text string.{td}{tr}{tbody}{tbody}{tr}{td}[Date]{td}{td}[#timestampToDate]\(date)
Returns a datestamp from the timestamp (sets hours,minutes,seconds and milliseconds to 0).{td}{tr}{tbody}{table}\\{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=50D37B69-E07F-4307-8D54-14583C8AC0BF}{tr:id=name}{td}h6.dateFormat{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}Object{span}{span:id=iets|style=float: left; font-weight: bold;}dateFormat{span}{span:id=iets|style=float: left;}\(date, format){span}{td}{tr}{tr:id=des}{td}{sub-section:50D37B69-E07F-4307-8D54-14583C8AC0BF_des|text=|trigger=button}{sub-section}{sub-section:50D37B69-E07F-4307-8D54-14583C8AC0BF_des|trigger=none|class=sIndent}Format a date object to a text representation or a parses a datestring to a date object.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:50D37B69-E07F-4307-8D54-14583C8AC0BF_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:50D37B69-E07F-4307-8D54-14583C8AC0BF_prs|trigger=none}date -- the date as text or date object
format -- the format to output or parse the to date
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:50D37B69-E07F-4307-8D54-14583C8AC0BF_ret|text=|trigger=button}{sub-section}{sub-section:50D37B69-E07F-4307-8D54-14583C8AC0BF_ret|trigger=none|class=sIndent}Object -- the date as text or date object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:50D37B69-E07F-4307-8D54-14583C8AC0BF_see|text=|trigger=button}{sub-section}{sub-section:50D37B69-E07F-4307-8D54-14583C8AC0BF_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:50D37B69-E07F-4307-8D54-14583C8AC0BF_see|text=|trigger=button}{sub-section}{sub-section:50D37B69-E07F-4307-8D54-14583C8AC0BF_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:50D37B69-E07F-4307-8D54-14583C8AC0BF_sam|text=|trigger=button}{sub-section}{sub-section:50D37B69-E07F-4307-8D54-14583C8AC0BF_sam|class=sIndent|trigger=none}{code:language=javascript}
var parsedDate = utils.dateFormat(datestring,'EEE, d MMM yyyy HH:mm:ss'); 

var formattedDateString = utils.dateFormat(dateobject,'EEE, d MMM yyyy HH:mm:ss');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=9B4B709A-7F58-4B69-8315-259152EE0DC5}{tr:id=name}{td}h6.getUnicodeCharacter{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getUnicodeCharacter{span}{span:id=iets|style=float: left;}\(unicodeCharacterNumber){span}{td}{tr}{tr:id=des}{td}{sub-section:9B4B709A-7F58-4B69-8315-259152EE0DC5_des|text=|trigger=button}{sub-section}{sub-section:9B4B709A-7F58-4B69-8315-259152EE0DC5_des|trigger=none|class=sIndent}Returns a string containing the character for the unicode number.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:9B4B709A-7F58-4B69-8315-259152EE0DC5_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9B4B709A-7F58-4B69-8315-259152EE0DC5_prs|trigger=none}unicodeCharacterNumber -- the number indicating the unicode character
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:9B4B709A-7F58-4B69-8315-259152EE0DC5_ret|text=|trigger=button}{sub-section}{sub-section:9B4B709A-7F58-4B69-8315-259152EE0DC5_ret|trigger=none|class=sIndent}[String] -- a string containing the unicode character{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:9B4B709A-7F58-4B69-8315-259152EE0DC5_see|text=|trigger=button}{sub-section}{sub-section:9B4B709A-7F58-4B69-8315-259152EE0DC5_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9B4B709A-7F58-4B69-8315-259152EE0DC5_see|text=|trigger=button}{sub-section}{sub-section:9B4B709A-7F58-4B69-8315-259152EE0DC5_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9B4B709A-7F58-4B69-8315-259152EE0DC5_sam|text=|trigger=button}{sub-section}{sub-section:9B4B709A-7F58-4B69-8315-259152EE0DC5_sam|class=sIndent|trigger=none}{code:language=javascript}
//returns a big dot
var dot = utils.getUnicodeCharacter(9679);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=6F9B0AF5-FD4E-4CEC-BD5D-C7EB34C97207}{tr:id=name}{td}h6.hasRecords{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}hasRecords{span}{span:id=iets|style=float: left;}\(foundset_or_record, qualifiedRelationString){span}{td}{tr}{tr:id=des}{td}{sub-section:6F9B0AF5-FD4E-4CEC-BD5D-C7EB34C97207_des|text=|trigger=button}{sub-section}{sub-section:6F9B0AF5-FD4E-4CEC-BD5D-C7EB34C97207_des|trigger=none|class=sIndent}Returns true if the (related)foundset exists and has records.
Another use is, to pass a record and qualified relations string to test multiple relations/foundset at once{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:6F9B0AF5-FD4E-4CEC-BD5D-C7EB34C97207_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:6F9B0AF5-FD4E-4CEC-BD5D-C7EB34C97207_prs|trigger=none}foundset_or_record -- the foundset or record to be tested
\[qualifiedRelationString\] -- the qualified relation string to reach a related foundset if a record is passes as first paramter
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:6F9B0AF5-FD4E-4CEC-BD5D-C7EB34C97207_ret|text=|trigger=button}{sub-section}{sub-section:6F9B0AF5-FD4E-4CEC-BD5D-C7EB34C97207_ret|trigger=none|class=sIndent}[Boolean] -- true if exists{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:6F9B0AF5-FD4E-4CEC-BD5D-C7EB34C97207_see|text=|trigger=button}{sub-section}{sub-section:6F9B0AF5-FD4E-4CEC-BD5D-C7EB34C97207_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:6F9B0AF5-FD4E-4CEC-BD5D-C7EB34C97207_see|text=|trigger=button}{sub-section}{sub-section:6F9B0AF5-FD4E-4CEC-BD5D-C7EB34C97207_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:6F9B0AF5-FD4E-4CEC-BD5D-C7EB34C97207_sam|text=|trigger=button}{sub-section}{sub-section:6F9B0AF5-FD4E-4CEC-BD5D-C7EB34C97207_sam|class=sIndent|trigger=none}{code:language=javascript}
//test the orders_to_orderitems foundset 
if (elements.customer_id.hasRecords(orders_to_orderitems))
{
	//do work on relatedFoundSet
}
//test the orders_to_orderitems.orderitems_to_products foundset to be reached from the current record 
//if (elements.customer_id.hasRecords(foundset.getSelectedRecord(),'orders_to_orderitems.orderitems_to_products'))
//{
//	//do work on deeper relatedFoundSet
//}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=A47EBCD4-0EC4-4C62-9C27-A95F7A16FF40}{tr:id=name}{td}h6.isMondayFirstDayOfWeek{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}isMondayFirstDayOfWeek{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:A47EBCD4-0EC4-4C62-9C27-A95F7A16FF40_des|text=|trigger=button}{sub-section}{sub-section:A47EBCD4-0EC4-4C62-9C27-A95F7A16FF40_des|trigger=none|class=sIndent}Returns true when Monday is the first day of the week for your current locale setting.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:A47EBCD4-0EC4-4C62-9C27-A95F7A16FF40_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A47EBCD4-0EC4-4C62-9C27-A95F7A16FF40_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:A47EBCD4-0EC4-4C62-9C27-A95F7A16FF40_ret|text=|trigger=button}{sub-section}{sub-section:A47EBCD4-0EC4-4C62-9C27-A95F7A16FF40_ret|trigger=none|class=sIndent}[Boolean] -- true if Monday is first day of the week in current locale{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A47EBCD4-0EC4-4C62-9C27-A95F7A16FF40_see|text=|trigger=button}{sub-section}{sub-section:A47EBCD4-0EC4-4C62-9C27-A95F7A16FF40_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A47EBCD4-0EC4-4C62-9C27-A95F7A16FF40_see|text=|trigger=button}{sub-section}{sub-section:A47EBCD4-0EC4-4C62-9C27-A95F7A16FF40_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A47EBCD4-0EC4-4C62-9C27-A95F7A16FF40_sam|text=|trigger=button}{sub-section}{sub-section:A47EBCD4-0EC4-4C62-9C27-A95F7A16FF40_sam|class=sIndent|trigger=none}{code:language=javascript}
if(utils.isMondayFirstDayOfWeek())
{
//a date calculation
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=95B96D63-6086-4334-9F48-64EC045A8DB5}{tr:id=name}{td}h6.numberFormat{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}numberFormat{span}{span:id=iets|style=float: left;}\(number, digitsOrFormat){span}{td}{tr}{tr:id=des}{td}{sub-section:95B96D63-6086-4334-9F48-64EC045A8DB5_des|text=|trigger=button}{sub-section}{sub-section:95B96D63-6086-4334-9F48-64EC045A8DB5_des|trigger=none|class=sIndent}Format a number to specification (or to have a defined fraction).{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:95B96D63-6086-4334-9F48-64EC045A8DB5_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:95B96D63-6086-4334-9F48-64EC045A8DB5_prs|trigger=none}number -- the number to format
digitsOrFormat -- the format or digits
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:95B96D63-6086-4334-9F48-64EC045A8DB5_ret|text=|trigger=button}{sub-section}{sub-section:95B96D63-6086-4334-9F48-64EC045A8DB5_ret|trigger=none|class=sIndent}[String] -- the resulting number in text{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:95B96D63-6086-4334-9F48-64EC045A8DB5_see|text=|trigger=button}{sub-section}{sub-section:95B96D63-6086-4334-9F48-64EC045A8DB5_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:95B96D63-6086-4334-9F48-64EC045A8DB5_see|text=|trigger=button}{sub-section}{sub-section:95B96D63-6086-4334-9F48-64EC045A8DB5_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:95B96D63-6086-4334-9F48-64EC045A8DB5_sam|text=|trigger=button}{sub-section}{sub-section:95B96D63-6086-4334-9F48-64EC045A8DB5_sam|class=sIndent|trigger=none}{code:language=javascript}
var textalNumber = utils.numberFormat(16.749, 2); //returns 16.75
var textalNumber2 = utils.numberFormat(100006.749, '#,###.00'); //returns 100,006.75
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=3B4A4F28-7472-4F55-AA4A-D9D23B8CBA8F}{tr:id=name}{td}h6.stringEscapeMarkup{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}stringEscapeMarkup{span}{span:id=iets|style=float: left;}\(textString, escapeSpaces, convertToHtmlUnicodeEscapes){span}{td}{tr}{tr:id=des}{td}{sub-section:3B4A4F28-7472-4F55-AA4A-D9D23B8CBA8F_des|text=|trigger=button}{sub-section}{sub-section:3B4A4F28-7472-4F55-AA4A-D9D23B8CBA8F_des|trigger=none|class=sIndent}Returns the escaped markup text (HTML/XML).{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:3B4A4F28-7472-4F55-AA4A-D9D23B8CBA8F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3B4A4F28-7472-4F55-AA4A-D9D23B8CBA8F_prs|trigger=none}textString -- the text to process
\[escapeSpaces\] -- boolean indicating to escape spaces
\[convertToHtmlUnicodeEscapes\] -- boolean indicating to use unicode escapes
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:3B4A4F28-7472-4F55-AA4A-D9D23B8CBA8F_ret|text=|trigger=button}{sub-section}{sub-section:3B4A4F28-7472-4F55-AA4A-D9D23B8CBA8F_ret|trigger=none|class=sIndent}[String] -- the escaped text{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:3B4A4F28-7472-4F55-AA4A-D9D23B8CBA8F_see|text=|trigger=button}{sub-section}{sub-section:3B4A4F28-7472-4F55-AA4A-D9D23B8CBA8F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:3B4A4F28-7472-4F55-AA4A-D9D23B8CBA8F_see|text=|trigger=button}{sub-section}{sub-section:3B4A4F28-7472-4F55-AA4A-D9D23B8CBA8F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:3B4A4F28-7472-4F55-AA4A-D9D23B8CBA8F_sam|text=|trigger=button}{sub-section}{sub-section:3B4A4F28-7472-4F55-AA4A-D9D23B8CBA8F_sam|class=sIndent|trigger=none}{code:language=javascript}
var escapedText = utils.stringEscapeMarkup('<html><body>escape me</body></html>')
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=0147A0A8-3605-4CDD-B4A4-F6855E5B9B3A}{tr:id=name}{td}h6.stringFormat{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}stringFormat{span}{span:id=iets|style=float: left;}\(text_to_format, parameters_array){span}{td}{tr}{tr:id=des}{td}{sub-section:0147A0A8-3605-4CDD-B4A4-F6855E5B9B3A_des|text=|trigger=button}{sub-section}{sub-section:0147A0A8-3605-4CDD-B4A4-F6855E5B9B3A_des|trigger=none|class=sIndent}Formats a string according to format specifiers and arguments.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:0147A0A8-3605-4CDD-B4A4-F6855E5B9B3A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0147A0A8-3605-4CDD-B4A4-F6855E5B9B3A_prs|trigger=none}text_to_format -- the text to format
parameters_array -- the array with parameters
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:0147A0A8-3605-4CDD-B4A4-F6855E5B9B3A_ret|text=|trigger=button}{sub-section}{sub-section:0147A0A8-3605-4CDD-B4A4-F6855E5B9B3A_ret|trigger=none|class=sIndent}[String] -- the formatted text{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:0147A0A8-3605-4CDD-B4A4-F6855E5B9B3A_see|text=|trigger=button}{sub-section}{sub-section:0147A0A8-3605-4CDD-B4A4-F6855E5B9B3A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0147A0A8-3605-4CDD-B4A4-F6855E5B9B3A_see|text=|trigger=button}{sub-section}{sub-section:0147A0A8-3605-4CDD-B4A4-F6855E5B9B3A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:0147A0A8-3605-4CDD-B4A4-F6855E5B9B3A_sam|text=|trigger=button}{sub-section}{sub-section:0147A0A8-3605-4CDD-B4A4-F6855E5B9B3A_sam|class=sIndent|trigger=none}{code:language=javascript}
// the  format specifier has the syntax: %[argument_index$][flags][width][.precision]conversion
// argument index is 1$, 2$ ...
// flags is a set of characters that modify the output format
// typical values: '+'(The result will always include a sign), ','(The result will include locale-specific grouping separators)
// width is a non-negative decimal integer indicating the minimum number of characters to be written to the output
// precision is a non-negative decimal integer usually used to restrict the number of characters
// conversion is a character indicating how the argument should be formatted
// typical conversion values: b(boolean), s(string), c(character), d(decimal integer), f(floating number), t(prefix for date and time)
// Date/Time Conversions (used after 't' prefix): 
		// 'H' 	Hour of the day for the 24-hour clock, formatted as two digits with a leading zero as necessary i.e. 00 - 23. 
		// 'I' 	Hour for the 12-hour clock, formatted as two digits with a leading zero as necessary, i.e. 01 - 12. 
		// 'k' 	Hour of the day for the 24-hour clock, i.e. 0 - 23. 
		// 'l' 	Hour for the 12-hour clock, i.e. 1 - 12. 
		// 'M' 	Minute within the hour formatted as two digits with a leading zero as necessary, i.e. 00 - 59. 
		// 'S' 	Seconds within the minute, formatted as two digits with a leading zero as necessary, i.e. 00 - 60 ("60" is a special value required to support leap seconds).
		// 'L' 	Millisecond within the second formatted as three digits with leading zeros as necessary, i.e. 000 - 999.
		// 'p' 	Locale-specific morning or afternoon marker in lower case, e.g."am" or "pm". Use of the conversion prefix 'T' forces this output to upper case. 
		// 'z' 	RFC 822 style numeric time zone offset from GMT, e.g. -0800.
		// 'Z' 	A string representing the abbreviation for the time zone.
		// 'B' 	Locale-specific full month name, e.g. "January", "February".
		// 'b' 	Locale-specific abbreviated month name, e.g. "Jan", "Feb". 
		// 'h' 	Same as 'b'. 
		// 'A' 	Locale-specific full name of the day of the week, e.g. "Sunday", "Monday" 
		// 'a' 	Locale-specific short name of the day of the week, e.g. "Sun", "Mon" 
		// 'C' 	Four-digit year divided by 100, formatted as two digits with leading zero as necessary, i.e. 00 - 99 
		// 'Y' 	Year, formatted as at least four digits with leading zeros as necessary, e.g. 0092 equals 92 CE for the Gregorian calendar. 
		// 'y' 	Last two digits of the year, formatted with leading zeros as necessary, i.e. 00 - 99.
		// 'j' 	Day of year, formatted as three digits with leading zeros as necessary, e.g. 001 - 366 for the Gregorian calendar. 
		// 'm' 	Month, formatted as two digits with leading zeros as necessary, i.e. 01 - 13. 
		// 'd' 	Day of month, formatted as two digits with leading zeros as necessary, i.e. 01 - 31 
		// 'e' 	Day of month, formatted as two digits, i.e. 1 - 31.

		// common compositions for date/time conversion
		// 'R' 	Time formatted for the 24-hour clock as "%tH:%tM" 
		// 'T' 	Time formatted for the 24-hour clock as "%tH:%tM:%tS". 
		// 'r' 	Time formatted for the 12-hour clock as "%tI:%tM:%tS %Tp". The location of the morning or afternoon marker ('%Tp') may be locale-dependent. 
		// 'D' 	Date formatted as "%tm/%td/%ty". 
		// 'F' 	ISO 8601 complete date formatted as "%tY-%tm-%td". 
		// 'c' 	Date and time formatted as "%ta %tb %td %tT %tZ %tY", e.g. "Sun Jul 20 16:17:00 EDT 1969".

utils.stringFormat('%s Birthday: %2$tm %2$te,%2$tY',new Array('My',new Date(2009,0,1))) // returns My Birthday: 01 1,2009
utils.stringFormat('The time is: %1$tH:%1$tM:%1$tS',new Array(new Date(2009,0,1,12,0,0))) // returns The time is: 12:00:00
utils.stringFormat('My %s: %2$.0f, my float: %2$.2f',new Array('integer',10)) // returns My integer: 10, my float: 10.00
utils.stringFormat('Today is: %1$tc',new Array(new Date())) // returns current date/time as:  Today is: Fri Feb 20 14:15:54 EET 2009
utils.stringFormat('Today is: %tF',new Array(new Date())) // returns current date as: Today is: 2009-02-20
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=41E6D1D0-C255-446D-A7F2-153B3FE4AA6A}{tr:id=name}{td}h6.stringIndexReplace{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}stringIndexReplace{span}{span:id=iets|style=float: left;}\(textString, i_start, i_size, replacement_text){span}{td}{tr}{tr:id=des}{td}{sub-section:41E6D1D0-C255-446D-A7F2-153B3FE4AA6A_des|text=|trigger=button}{sub-section}{sub-section:41E6D1D0-C255-446D-A7F2-153B3FE4AA6A_des|trigger=none|class=sIndent}Replaces a portion of a string with replacement text from a specfied index.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:41E6D1D0-C255-446D-A7F2-153B3FE4AA6A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:41E6D1D0-C255-446D-A7F2-153B3FE4AA6A_prs|trigger=none}textString -- the text to process
i_start -- the start index to work from
i_size -- the size of the text to replace
replacement_text -- the replacement text
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:41E6D1D0-C255-446D-A7F2-153B3FE4AA6A_ret|text=|trigger=button}{sub-section}{sub-section:41E6D1D0-C255-446D-A7F2-153B3FE4AA6A_ret|trigger=none|class=sIndent}[String] -- the changed text string{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:41E6D1D0-C255-446D-A7F2-153B3FE4AA6A_see|text=|trigger=button}{sub-section}{sub-section:41E6D1D0-C255-446D-A7F2-153B3FE4AA6A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:41E6D1D0-C255-446D-A7F2-153B3FE4AA6A_see|text=|trigger=button}{sub-section}{sub-section:41E6D1D0-C255-446D-A7F2-153B3FE4AA6A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:41E6D1D0-C255-446D-A7F2-153B3FE4AA6A_sam|text=|trigger=button}{sub-section}{sub-section:41E6D1D0-C255-446D-A7F2-153B3FE4AA6A_sam|class=sIndent|trigger=none}{code:language=javascript}
//returns 'this was a test'
var retval = utils.stringIndexReplace('this is a test',6,2,'was');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=5EC240CE-BB09-468F-B16F-EEEB821C7222}{tr:id=name}{td}h6.stringInitCap{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}stringInitCap{span}{span:id=iets|style=float: left;}\(text){span}{td}{tr}{tr:id=des}{td}{sub-section:5EC240CE-BB09-468F-B16F-EEEB821C7222_des|text=|trigger=button}{sub-section}{sub-section:5EC240CE-BB09-468F-B16F-EEEB821C7222_des|trigger=none|class=sIndent}Returns all words starting with capital chars.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:5EC240CE-BB09-468F-B16F-EEEB821C7222_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:5EC240CE-BB09-468F-B16F-EEEB821C7222_prs|trigger=none}text -- the text to process
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:5EC240CE-BB09-468F-B16F-EEEB821C7222_ret|text=|trigger=button}{sub-section}{sub-section:5EC240CE-BB09-468F-B16F-EEEB821C7222_ret|trigger=none|class=sIndent}[String] -- the changed text{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:5EC240CE-BB09-468F-B16F-EEEB821C7222_see|text=|trigger=button}{sub-section}{sub-section:5EC240CE-BB09-468F-B16F-EEEB821C7222_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:5EC240CE-BB09-468F-B16F-EEEB821C7222_see|text=|trigger=button}{sub-section}{sub-section:5EC240CE-BB09-468F-B16F-EEEB821C7222_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:5EC240CE-BB09-468F-B16F-EEEB821C7222_sam|text=|trigger=button}{sub-section}{sub-section:5EC240CE-BB09-468F-B16F-EEEB821C7222_sam|class=sIndent|trigger=none}{code:language=javascript}
//returns 'This Is A Test'
var retval = utils.stringInitCap('This is A test');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=51C62A92-0228-41DB-BDDF-75DFEBCE6EF3}{tr:id=name}{td}h6.stringLeft{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}stringLeft{span}{span:id=iets|style=float: left;}\(textString, i_size){span}{td}{tr}{tr:id=des}{td}{sub-section:51C62A92-0228-41DB-BDDF-75DFEBCE6EF3_des|text=|trigger=button}{sub-section}{sub-section:51C62A92-0228-41DB-BDDF-75DFEBCE6EF3_des|trigger=none|class=sIndent}Returns a string with the requested number of characters, starting from the left.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:51C62A92-0228-41DB-BDDF-75DFEBCE6EF3_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:51C62A92-0228-41DB-BDDF-75DFEBCE6EF3_prs|trigger=none}textString -- the text to process
i_size -- the size of the text to return
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:51C62A92-0228-41DB-BDDF-75DFEBCE6EF3_ret|text=|trigger=button}{sub-section}{sub-section:51C62A92-0228-41DB-BDDF-75DFEBCE6EF3_ret|trigger=none|class=sIndent}[String] -- the result text string{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:51C62A92-0228-41DB-BDDF-75DFEBCE6EF3_see|text=|trigger=button}{sub-section}{sub-section:51C62A92-0228-41DB-BDDF-75DFEBCE6EF3_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:51C62A92-0228-41DB-BDDF-75DFEBCE6EF3_see|text=|trigger=button}{sub-section}{sub-section:51C62A92-0228-41DB-BDDF-75DFEBCE6EF3_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:51C62A92-0228-41DB-BDDF-75DFEBCE6EF3_sam|text=|trigger=button}{sub-section}{sub-section:51C62A92-0228-41DB-BDDF-75DFEBCE6EF3_sam|class=sIndent|trigger=none}{code:language=javascript}
//returns 'this i'
var retval = utils.stringLeft('this is a test',6);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=3017D6DE-3635-47D8-A42E-1320097337FE}{tr:id=name}{td}h6.stringLeftWords{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}stringLeftWords{span}{span:id=iets|style=float: left;}\(text, numberof_words){span}{td}{tr}{tr:id=des}{td}{sub-section:3017D6DE-3635-47D8-A42E-1320097337FE_des|text=|trigger=button}{sub-section}{sub-section:3017D6DE-3635-47D8-A42E-1320097337FE_des|trigger=none|class=sIndent}Returns the number of words, starting from the left.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:3017D6DE-3635-47D8-A42E-1320097337FE_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3017D6DE-3635-47D8-A42E-1320097337FE_prs|trigger=none}text -- to process
numberof_words -- to return
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:3017D6DE-3635-47D8-A42E-1320097337FE_ret|text=|trigger=button}{sub-section}{sub-section:3017D6DE-3635-47D8-A42E-1320097337FE_ret|trigger=none|class=sIndent}[String] -- the string with number of words form the left{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:3017D6DE-3635-47D8-A42E-1320097337FE_see|text=|trigger=button}{sub-section}{sub-section:3017D6DE-3635-47D8-A42E-1320097337FE_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:3017D6DE-3635-47D8-A42E-1320097337FE_see|text=|trigger=button}{sub-section}{sub-section:3017D6DE-3635-47D8-A42E-1320097337FE_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:3017D6DE-3635-47D8-A42E-1320097337FE_sam|text=|trigger=button}{sub-section}{sub-section:3017D6DE-3635-47D8-A42E-1320097337FE_sam|class=sIndent|trigger=none}{code:language=javascript}
//returns 'this is a'
var retval = utils.stringLeftWords('this is a test',3);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=47DDBE2F-AA33-4966-9F55-BD87BD010CA6}{tr:id=name}{td}h6.stringMD5HashBase16{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}stringMD5HashBase16{span}{span:id=iets|style=float: left;}\(textString){span}{td}{tr}{tr:id=des}{td}{sub-section:47DDBE2F-AA33-4966-9F55-BD87BD010CA6_des|text=|trigger=button}{sub-section}{sub-section:47DDBE2F-AA33-4966-9F55-BD87BD010CA6_des|trigger=none|class=sIndent}Returns the md5 hash (encoded as base16) for specified text.

NOTE: MD5 (Message-Digest Algorythm 5) is a hash function with a 128-bit hash value, for more info see: http://en.wikipedia.org/wiki/MD5{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:47DDBE2F-AA33-4966-9F55-BD87BD010CA6_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:47DDBE2F-AA33-4966-9F55-BD87BD010CA6_prs|trigger=none}textString -- the text to process
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:47DDBE2F-AA33-4966-9F55-BD87BD010CA6_ret|text=|trigger=button}{sub-section}{sub-section:47DDBE2F-AA33-4966-9F55-BD87BD010CA6_ret|trigger=none|class=sIndent}[String] -- the resulting hashString{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:47DDBE2F-AA33-4966-9F55-BD87BD010CA6_see|text=|trigger=button}{sub-section}{sub-section:47DDBE2F-AA33-4966-9F55-BD87BD010CA6_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:47DDBE2F-AA33-4966-9F55-BD87BD010CA6_see|text=|trigger=button}{sub-section}{sub-section:47DDBE2F-AA33-4966-9F55-BD87BD010CA6_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:47DDBE2F-AA33-4966-9F55-BD87BD010CA6_sam|text=|trigger=button}{sub-section}{sub-section:47DDBE2F-AA33-4966-9F55-BD87BD010CA6_sam|class=sIndent|trigger=none}{code:language=javascript}
var hashed_password = utils.stringMD5HashBase16(user_password)
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=E571A24E-A60A-48CC-9F58-3D37B50782A6}{tr:id=name}{td}h6.stringMD5HashBase64{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}stringMD5HashBase64{span}{span:id=iets|style=float: left;}\(textString){span}{td}{tr}{tr:id=des}{td}{sub-section:E571A24E-A60A-48CC-9F58-3D37B50782A6_des|text=|trigger=button}{sub-section}{sub-section:E571A24E-A60A-48CC-9F58-3D37B50782A6_des|trigger=none|class=sIndent}Returns the md5 hash (encoded as base64) for specified text.

NOTE: MD5 (Message-Digest Algorythm 5) is a hash function with a 128-bit hash value, for more info see: http://en.wikipedia.org/wiki/MD5{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:E571A24E-A60A-48CC-9F58-3D37B50782A6_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E571A24E-A60A-48CC-9F58-3D37B50782A6_prs|trigger=none}textString -- the text to process
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:E571A24E-A60A-48CC-9F58-3D37B50782A6_ret|text=|trigger=button}{sub-section}{sub-section:E571A24E-A60A-48CC-9F58-3D37B50782A6_ret|trigger=none|class=sIndent}[String] -- the resulting hashString{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:E571A24E-A60A-48CC-9F58-3D37B50782A6_see|text=|trigger=button}{sub-section}{sub-section:E571A24E-A60A-48CC-9F58-3D37B50782A6_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:E571A24E-A60A-48CC-9F58-3D37B50782A6_see|text=|trigger=button}{sub-section}{sub-section:E571A24E-A60A-48CC-9F58-3D37B50782A6_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:E571A24E-A60A-48CC-9F58-3D37B50782A6_sam|text=|trigger=button}{sub-section}{sub-section:E571A24E-A60A-48CC-9F58-3D37B50782A6_sam|class=sIndent|trigger=none}{code:language=javascript}
var hashed_password = utils.stringMD5HashBase64(user_password)
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=8FF5A721-10D3-4DA6-926A-6CC96F79CF5C}{tr:id=name}{td}h6.stringMiddle{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}stringMiddle{span}{span:id=iets|style=float: left;}\(textString, i_start, i_size){span}{td}{tr}{tr:id=des}{td}{sub-section:8FF5A721-10D3-4DA6-926A-6CC96F79CF5C_des|text=|trigger=button}{sub-section}{sub-section:8FF5A721-10D3-4DA6-926A-6CC96F79CF5C_des|trigger=none|class=sIndent}Returns a substring from the original string.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:8FF5A721-10D3-4DA6-926A-6CC96F79CF5C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8FF5A721-10D3-4DA6-926A-6CC96F79CF5C_prs|trigger=none}textString -- the text to process
i_start -- the start index to work from
i_size -- the size of the text to return
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:8FF5A721-10D3-4DA6-926A-6CC96F79CF5C_ret|text=|trigger=button}{sub-section}{sub-section:8FF5A721-10D3-4DA6-926A-6CC96F79CF5C_ret|trigger=none|class=sIndent}[String] -- the result text string{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:8FF5A721-10D3-4DA6-926A-6CC96F79CF5C_see|text=|trigger=button}{sub-section}{sub-section:8FF5A721-10D3-4DA6-926A-6CC96F79CF5C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:8FF5A721-10D3-4DA6-926A-6CC96F79CF5C_see|text=|trigger=button}{sub-section}{sub-section:8FF5A721-10D3-4DA6-926A-6CC96F79CF5C_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:8FF5A721-10D3-4DA6-926A-6CC96F79CF5C_sam|text=|trigger=button}{sub-section}{sub-section:8FF5A721-10D3-4DA6-926A-6CC96F79CF5C_sam|class=sIndent|trigger=none}{code:language=javascript}
//returns 'his'
var retval = utils.stringMiddle('this is a test',2,3);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=EB73E402-B784-42FD-85F8-C20A730CBB98}{tr:id=name}{td}h6.stringMiddleWords{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}stringMiddleWords{span}{span:id=iets|style=float: left;}\(text, i_start, numberof_words){span}{td}{tr}{tr:id=des}{td}{sub-section:EB73E402-B784-42FD-85F8-C20A730CBB98_des|text=|trigger=button}{sub-section}{sub-section:EB73E402-B784-42FD-85F8-C20A730CBB98_des|trigger=none|class=sIndent}Returns a substring from the original string.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:EB73E402-B784-42FD-85F8-C20A730CBB98_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:EB73E402-B784-42FD-85F8-C20A730CBB98_prs|trigger=none}text -- to process
i_start -- start word index
numberof_words -- the word count to return
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:EB73E402-B784-42FD-85F8-C20A730CBB98_ret|text=|trigger=button}{sub-section}{sub-section:EB73E402-B784-42FD-85F8-C20A730CBB98_ret|trigger=none|class=sIndent}[String] -- the string with number of words form the left and{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:EB73E402-B784-42FD-85F8-C20A730CBB98_see|text=|trigger=button}{sub-section}{sub-section:EB73E402-B784-42FD-85F8-C20A730CBB98_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:EB73E402-B784-42FD-85F8-C20A730CBB98_see|text=|trigger=button}{sub-section}{sub-section:EB73E402-B784-42FD-85F8-C20A730CBB98_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:EB73E402-B784-42FD-85F8-C20A730CBB98_sam|text=|trigger=button}{sub-section}{sub-section:EB73E402-B784-42FD-85F8-C20A730CBB98_sam|class=sIndent|trigger=none}{code:language=javascript}
//returns 'is a'
var retval = utils.stringMiddleWords('this is a test',2,2);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=77AC9370-4F06-46C9-9608-51514803D9C1}{tr:id=name}{td}h6.stringPatternCount{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}stringPatternCount{span}{span:id=iets|style=float: left;}\(textString, searchString){span}{td}{tr}{tr:id=des}{td}{sub-section:77AC9370-4F06-46C9-9608-51514803D9C1_des|text=|trigger=button}{sub-section}{sub-section:77AC9370-4F06-46C9-9608-51514803D9C1_des|trigger=none|class=sIndent}Returns the number of times searchString appears in textString.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:77AC9370-4F06-46C9-9608-51514803D9C1_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:77AC9370-4F06-46C9-9608-51514803D9C1_prs|trigger=none}textString -- the text to process
searchString -- the string to search
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:77AC9370-4F06-46C9-9608-51514803D9C1_ret|text=|trigger=button}{sub-section}{sub-section:77AC9370-4F06-46C9-9608-51514803D9C1_ret|trigger=none|class=sIndent}[Number] -- the occurrenceCount that the search string is found in the text{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:77AC9370-4F06-46C9-9608-51514803D9C1_see|text=|trigger=button}{sub-section}{sub-section:77AC9370-4F06-46C9-9608-51514803D9C1_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:77AC9370-4F06-46C9-9608-51514803D9C1_see|text=|trigger=button}{sub-section}{sub-section:77AC9370-4F06-46C9-9608-51514803D9C1_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:77AC9370-4F06-46C9-9608-51514803D9C1_sam|text=|trigger=button}{sub-section}{sub-section:77AC9370-4F06-46C9-9608-51514803D9C1_sam|class=sIndent|trigger=none}{code:language=javascript}
//returns 2 as count
var count = utils.stringPatternCount('this is a test','is');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=2DE03DAE-79DD-4B19-A323-5390D864C29F}{tr:id=name}{td}h6.stringPosition{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}stringPosition{span}{span:id=iets|style=float: left;}\(textString, searchString, i_start, i_occurrence){span}{td}{tr}{tr:id=des}{td}{sub-section:2DE03DAE-79DD-4B19-A323-5390D864C29F_des|text=|trigger=button}{sub-section}{sub-section:2DE03DAE-79DD-4B19-A323-5390D864C29F_des|trigger=none|class=sIndent}Returns the position of the string to seach for, from a certain start position and occurrence.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:2DE03DAE-79DD-4B19-A323-5390D864C29F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:2DE03DAE-79DD-4B19-A323-5390D864C29F_prs|trigger=none}textString -- the text to process
searchString -- the string to search
i_start -- the start index to search from
i_occurrence -- the occurrence
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:2DE03DAE-79DD-4B19-A323-5390D864C29F_ret|text=|trigger=button}{sub-section}{sub-section:2DE03DAE-79DD-4B19-A323-5390D864C29F_ret|trigger=none|class=sIndent}[Number] -- the position{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:2DE03DAE-79DD-4B19-A323-5390D864C29F_see|text=|trigger=button}{sub-section}{sub-section:2DE03DAE-79DD-4B19-A323-5390D864C29F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:2DE03DAE-79DD-4B19-A323-5390D864C29F_see|text=|trigger=button}{sub-section}{sub-section:2DE03DAE-79DD-4B19-A323-5390D864C29F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:2DE03DAE-79DD-4B19-A323-5390D864C29F_sam|text=|trigger=button}{sub-section}{sub-section:2DE03DAE-79DD-4B19-A323-5390D864C29F_sam|class=sIndent|trigger=none}{code:language=javascript}
//returns 4 as position
var pos = utils.stringPosition('This is a test','s',1,1)
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=882802CE-CD77-4EC6-AA63-698AE48A7F8D}{tr:id=name}{td}h6.stringReplace{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}stringReplace{span}{span:id=iets|style=float: left;}\(text, search_text, replacement_text){span}{td}{tr}{tr:id=des}{td}{sub-section:882802CE-CD77-4EC6-AA63-698AE48A7F8D_des|text=|trigger=button}{sub-section}{sub-section:882802CE-CD77-4EC6-AA63-698AE48A7F8D_des|trigger=none|class=sIndent}Replaces a portion of a string with replacement text.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:882802CE-CD77-4EC6-AA63-698AE48A7F8D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:882802CE-CD77-4EC6-AA63-698AE48A7F8D_prs|trigger=none}text -- the text to process
search_text -- the string to search
replacement_text -- the replacement text
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:882802CE-CD77-4EC6-AA63-698AE48A7F8D_ret|text=|trigger=button}{sub-section}{sub-section:882802CE-CD77-4EC6-AA63-698AE48A7F8D_ret|trigger=none|class=sIndent}[String] -- the changed text string{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:882802CE-CD77-4EC6-AA63-698AE48A7F8D_see|text=|trigger=button}{sub-section}{sub-section:882802CE-CD77-4EC6-AA63-698AE48A7F8D_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:882802CE-CD77-4EC6-AA63-698AE48A7F8D_see|text=|trigger=button}{sub-section}{sub-section:882802CE-CD77-4EC6-AA63-698AE48A7F8D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:882802CE-CD77-4EC6-AA63-698AE48A7F8D_sam|text=|trigger=button}{sub-section}{sub-section:882802CE-CD77-4EC6-AA63-698AE48A7F8D_sam|class=sIndent|trigger=none}{code:language=javascript}
//returns 'these are cow 1 and cow 2.'
var retval = utils.stringReplace('these are test 1 and test 2.','test','cow');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=A68760BD-7C01-4D4B-8821-E324BFC2AE30}{tr:id=name}{td}h6.stringReplaceTags{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}stringReplaceTags{span}{span:id=iets|style=float: left;}\(text, foundset_or_record){span}{td}{tr}{tr:id=des}{td}{sub-section:A68760BD-7C01-4D4B-8821-E324BFC2AE30_des|text=|trigger=button}{sub-section}{sub-section:A68760BD-7C01-4D4B-8821-E324BFC2AE30_des|trigger=none|class=sIndent}Returns the text with % %tags%% replaced, based on provided record or foundset.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:A68760BD-7C01-4D4B-8821-E324BFC2AE30_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A68760BD-7C01-4D4B-8821-E324BFC2AE30_prs|trigger=none}text -- the text tags to work with
foundset_or_record -- the foundset or record to be used to fill in the tags
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:A68760BD-7C01-4D4B-8821-E324BFC2AE30_ret|text=|trigger=button}{sub-section}{sub-section:A68760BD-7C01-4D4B-8821-E324BFC2AE30_ret|trigger=none|class=sIndent}[String] -- the text with replaced tags{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A68760BD-7C01-4D4B-8821-E324BFC2AE30_see|text=|trigger=button}{sub-section}{sub-section:A68760BD-7C01-4D4B-8821-E324BFC2AE30_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A68760BD-7C01-4D4B-8821-E324BFC2AE30_see|text=|trigger=button}{sub-section}{sub-section:A68760BD-7C01-4D4B-8821-E324BFC2AE30_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A68760BD-7C01-4D4B-8821-E324BFC2AE30_sam|text=|trigger=button}{sub-section}{sub-section:A68760BD-7C01-4D4B-8821-E324BFC2AE30_sam|class=sIndent|trigger=none}{code:language=javascript}
//Next line places a string in variable x, whereby the tag(% %TAG%%) is filled with the value of the database column 'company_name' of the selected record.
var x = utils.stringReplaceTags("The companyName of the selected record is % %company_name%% ", foundset)
//var otherExample = utils.stringReplaceTags("The amount of the related order line % %amount%% ", order_to_orderdetails);
//var recordExample = utils.stringReplaceTags("The amount of the related order line % %amount%% ", order_to_orderdetails.getRecord(i);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=E91ACC40-8913-47E2-8510-328F856B638D}{tr:id=name}{td}h6.stringRight{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}stringRight{span}{span:id=iets|style=float: left;}\(textString, i_size){span}{td}{tr}{tr:id=des}{td}{sub-section:E91ACC40-8913-47E2-8510-328F856B638D_des|text=|trigger=button}{sub-section}{sub-section:E91ACC40-8913-47E2-8510-328F856B638D_des|trigger=none|class=sIndent}Returns a string with the requested number of characters, starting from the right.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:E91ACC40-8913-47E2-8510-328F856B638D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E91ACC40-8913-47E2-8510-328F856B638D_prs|trigger=none}textString -- the text to process
i_size -- the size of the text to return
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:E91ACC40-8913-47E2-8510-328F856B638D_ret|text=|trigger=button}{sub-section}{sub-section:E91ACC40-8913-47E2-8510-328F856B638D_ret|trigger=none|class=sIndent}[String] -- the result text string{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:E91ACC40-8913-47E2-8510-328F856B638D_see|text=|trigger=button}{sub-section}{sub-section:E91ACC40-8913-47E2-8510-328F856B638D_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:E91ACC40-8913-47E2-8510-328F856B638D_see|text=|trigger=button}{sub-section}{sub-section:E91ACC40-8913-47E2-8510-328F856B638D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:E91ACC40-8913-47E2-8510-328F856B638D_sam|text=|trigger=button}{sub-section}{sub-section:E91ACC40-8913-47E2-8510-328F856B638D_sam|class=sIndent|trigger=none}{code:language=javascript}
//returns 'a test'
var retval = utils.stringLeft('this is a test',6);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=0B4F4BB5-4C66-44A2-8F3F-FF1825D1A934}{tr:id=name}{td}h6.stringRightWords{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}stringRightWords{span}{span:id=iets|style=float: left;}\(text, numberof_words){span}{td}{tr}{tr:id=des}{td}{sub-section:0B4F4BB5-4C66-44A2-8F3F-FF1825D1A934_des|text=|trigger=button}{sub-section}{sub-section:0B4F4BB5-4C66-44A2-8F3F-FF1825D1A934_des|trigger=none|class=sIndent}Returns the number of words, starting from the right.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:0B4F4BB5-4C66-44A2-8F3F-FF1825D1A934_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0B4F4BB5-4C66-44A2-8F3F-FF1825D1A934_prs|trigger=none}text -- to process
numberof_words -- to return
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:0B4F4BB5-4C66-44A2-8F3F-FF1825D1A934_ret|text=|trigger=button}{sub-section}{sub-section:0B4F4BB5-4C66-44A2-8F3F-FF1825D1A934_ret|trigger=none|class=sIndent}[String] -- the string with number of words form the right{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:0B4F4BB5-4C66-44A2-8F3F-FF1825D1A934_see|text=|trigger=button}{sub-section}{sub-section:0B4F4BB5-4C66-44A2-8F3F-FF1825D1A934_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0B4F4BB5-4C66-44A2-8F3F-FF1825D1A934_see|text=|trigger=button}{sub-section}{sub-section:0B4F4BB5-4C66-44A2-8F3F-FF1825D1A934_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:0B4F4BB5-4C66-44A2-8F3F-FF1825D1A934_sam|text=|trigger=button}{sub-section}{sub-section:0B4F4BB5-4C66-44A2-8F3F-FF1825D1A934_sam|class=sIndent|trigger=none}{code:language=javascript}
//returns 'is a test'
var retval = utils.stringRightWords('this is a test',3);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=E011FFE2-0B2E-4A0C-B473-48DCFA2E5DB6}{tr:id=name}{td}h6.stringToNumber{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}stringToNumber{span}{span:id=iets|style=float: left;}\(textString){span}{td}{tr}{tr:id=des}{td}{sub-section:E011FFE2-0B2E-4A0C-B473-48DCFA2E5DB6_des|text=|trigger=button}{sub-section}{sub-section:E011FFE2-0B2E-4A0C-B473-48DCFA2E5DB6_des|trigger=none|class=sIndent}Filters characters out of from a string and leaves digits, returns the number.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:E011FFE2-0B2E-4A0C-B473-48DCFA2E5DB6_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E011FFE2-0B2E-4A0C-B473-48DCFA2E5DB6_prs|trigger=none}textString -- the text to process
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:E011FFE2-0B2E-4A0C-B473-48DCFA2E5DB6_ret|text=|trigger=button}{sub-section}{sub-section:E011FFE2-0B2E-4A0C-B473-48DCFA2E5DB6_ret|trigger=none|class=sIndent}[Number] -- the resulting number{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:E011FFE2-0B2E-4A0C-B473-48DCFA2E5DB6_see|text=|trigger=button}{sub-section}{sub-section:E011FFE2-0B2E-4A0C-B473-48DCFA2E5DB6_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:E011FFE2-0B2E-4A0C-B473-48DCFA2E5DB6_see|text=|trigger=button}{sub-section}{sub-section:E011FFE2-0B2E-4A0C-B473-48DCFA2E5DB6_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:E011FFE2-0B2E-4A0C-B473-48DCFA2E5DB6_sam|text=|trigger=button}{sub-section}{sub-section:E011FFE2-0B2E-4A0C-B473-48DCFA2E5DB6_sam|class=sIndent|trigger=none}{code:language=javascript}
//returns '65567'
var retval = utils.stringToNumber('fg65gf567');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=1D323A9B-4CC4-4FF1-8178-4C5C6F065D90}{tr:id=name}{td}h6.stringTrim{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}stringTrim{span}{span:id=iets|style=float: left;}\(textString){span}{td}{tr}{tr:id=des}{td}{sub-section:1D323A9B-4CC4-4FF1-8178-4C5C6F065D90_des|text=|trigger=button}{sub-section}{sub-section:1D323A9B-4CC4-4FF1-8178-4C5C6F065D90_des|trigger=none|class=sIndent}Returns the string without leading or trailing spaces.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:1D323A9B-4CC4-4FF1-8178-4C5C6F065D90_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:1D323A9B-4CC4-4FF1-8178-4C5C6F065D90_prs|trigger=none}textString -- the text to process
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:1D323A9B-4CC4-4FF1-8178-4C5C6F065D90_ret|text=|trigger=button}{sub-section}{sub-section:1D323A9B-4CC4-4FF1-8178-4C5C6F065D90_ret|trigger=none|class=sIndent}[String] -- the resulting trimmed string{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:1D323A9B-4CC4-4FF1-8178-4C5C6F065D90_see|text=|trigger=button}{sub-section}{sub-section:1D323A9B-4CC4-4FF1-8178-4C5C6F065D90_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:1D323A9B-4CC4-4FF1-8178-4C5C6F065D90_see|text=|trigger=button}{sub-section}{sub-section:1D323A9B-4CC4-4FF1-8178-4C5C6F065D90_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:1D323A9B-4CC4-4FF1-8178-4C5C6F065D90_sam|text=|trigger=button}{sub-section}{sub-section:1D323A9B-4CC4-4FF1-8178-4C5C6F065D90_sam|class=sIndent|trigger=none}{code:language=javascript}
//returns 'text'
var retval = utils.stringTrim('   text   ');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=4E6800EA-00EB-4400-B971-9896741416B4}{tr:id=name}{td}h6.stringWordCount{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}stringWordCount{span}{span:id=iets|style=float: left;}\(textString){span}{td}{tr}{tr:id=des}{td}{sub-section:4E6800EA-00EB-4400-B971-9896741416B4_des|text=|trigger=button}{sub-section}{sub-section:4E6800EA-00EB-4400-B971-9896741416B4_des|trigger=none|class=sIndent}Returns the number of words in the text string.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:4E6800EA-00EB-4400-B971-9896741416B4_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4E6800EA-00EB-4400-B971-9896741416B4_prs|trigger=none}textString -- the text to process
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:4E6800EA-00EB-4400-B971-9896741416B4_ret|text=|trigger=button}{sub-section}{sub-section:4E6800EA-00EB-4400-B971-9896741416B4_ret|trigger=none|class=sIndent}[Number] -- the word count{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:4E6800EA-00EB-4400-B971-9896741416B4_see|text=|trigger=button}{sub-section}{sub-section:4E6800EA-00EB-4400-B971-9896741416B4_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4E6800EA-00EB-4400-B971-9896741416B4_see|text=|trigger=button}{sub-section}{sub-section:4E6800EA-00EB-4400-B971-9896741416B4_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4E6800EA-00EB-4400-B971-9896741416B4_sam|text=|trigger=button}{sub-section}{sub-section:4E6800EA-00EB-4400-B971-9896741416B4_sam|class=sIndent|trigger=none}{code:language=javascript}
//returns '4' as result
var retval = utils.stringWordCount('this is a test');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=3D4ECCCB-FC13-4CDA-950F-B256AD203CE9}{tr:id=name}{td}h6.timestampToDate{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Date]{span}{span:id=iets|style=float: left; font-weight: bold;}timestampToDate{span}{span:id=iets|style=float: left;}\(date){span}{td}{tr}{tr:id=des}{td}{sub-section:3D4ECCCB-FC13-4CDA-950F-B256AD203CE9_des|text=|trigger=button}{sub-section}{sub-section:3D4ECCCB-FC13-4CDA-950F-B256AD203CE9_des|trigger=none|class=sIndent}Returns a datestamp from the timestamp (sets hours,minutes,seconds and milliseconds to 0).{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:3D4ECCCB-FC13-4CDA-950F-B256AD203CE9_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3D4ECCCB-FC13-4CDA-950F-B256AD203CE9_prs|trigger=none}date -- object to be stripped from its time elements
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:3D4ECCCB-FC13-4CDA-950F-B256AD203CE9_ret|text=|trigger=button}{sub-section}{sub-section:3D4ECCCB-FC13-4CDA-950F-B256AD203CE9_ret|trigger=none|class=sIndent}[Date] -- the stripped date object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:3D4ECCCB-FC13-4CDA-950F-B256AD203CE9_see|text=|trigger=button}{sub-section}{sub-section:3D4ECCCB-FC13-4CDA-950F-B256AD203CE9_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:3D4ECCCB-FC13-4CDA-950F-B256AD203CE9_see|text=|trigger=button}{sub-section}{sub-section:3D4ECCCB-FC13-4CDA-950F-B256AD203CE9_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:3D4ECCCB-FC13-4CDA-950F-B256AD203CE9_sam|text=|trigger=button}{sub-section}{sub-section:3D4ECCCB-FC13-4CDA-950F-B256AD203CE9_sam|class=sIndent|trigger=none}{code:language=javascript}
var date = utils.timestampToDate(application.getTimeStamp());
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}