Posts

Showing posts with the label string format

javascript : String.mid

  javascript : String .mid( n, m ) Target: Applicable with  String  Data Type. Description : return m number of charector from string starts from n. Syntax: String .mid( n, m ) Usase: "abcdefghijklmnopqrstuvwxyz".mid(7,5) It return string "hijkl" Download MYJS.js MyJs is a collection of java script extension methods that enhances the JavaScript objects, class object, DOM element, domElementsCollections, Date, String, Number and other data type.  Include in you project landing page (master page) and it will extends your DOM and JavaScript Objects.

javascript : String.right

  javascript : String .right( n ) Target: Applicable with  String  Data Type. Description : return last n number of charector from string. Syntax: String .right( n ) Usase: "abcdefghijklmnopqrstuvwxyz".right(7) It return string "tuvwxyz" Download MYJS.js MyJs is a collection of java script extension methods that enhances the JavaScript objects, class object, DOM element, domElementsCollections, Date, String, Number and other data type.  Include in you project landing page (master page) and it will extends your DOM and JavaScript Objects.

javascript : String.left

  javascript : String .left( n ) Target: Applicable with  String  Data Type. Description : return first n number of charector from string. Syntax: String .left( n ) Usase: "abcdefghijklmnopqrstuvwxyz".left(7) It return string "abcdefg" Download MYJS.js Include in you project landing page (master page) and it will extends your DOM and JavaScript Objects.

javascript : String.reverse()

  javascript : String .reverse() Target: Applicable with  String  Data Type. Description : Reverses the string letter by letter right to left. Syntax: String .reverse() Usase: " hello     how     are     you ? ".reverse() It return string " ? uoy     era     woh     olleh " "hello-how-are-you-?".reverse() It return string "?-uoy-era-woh-olleh" Download MYJS.js MyJs is a collection of java script extension methods that enhances the JavaScript objects, class object, DOM element, domElementsCollections, Date, String, Number and other data type.  Include in you project landing page (master page) and it will extends your DOM and JavaScript Objects.

javascript : Number.format(strFormat)

javascript : Number .format( strFormat ) Target: Applicable with  Number  Data Type. Description : format Number to string with given format string. Note: strFormat should to matched with regular Expression "/^([0#,])+([.]){0,1}([0])*$/" other wise return toLocalString(). Syntax: Number .format( strFormat ) Usase: (123456.123456).format("##,##,##0.00")  //Currency It return string "1,23,456.12" (123456.123456).format("00000000000")  //pad zero It return string "00000123456" (123456545).format("00000000000.00")  //pad zero + decimal It return string "00123456545.00" (123456545).format("0.00")  //Fixed Decimal Places It return string "123456545.00" (123456.545).format("0.00")  //floating point round in decimal places It return string "123456.55" Download MYJS.js MyJs is a collection of java script extension methods that enhances the JavaScript objects, class object, DOM element...

javascript : Date.addSeconds(number)

  javascript : Date .addSeconds( Number ) Target: Applicable with  Date  Data Type. Description : Add/Subtract Seconds from Date and return new Date object. Syntax: Date .addSeconds( number ) Usase: var dd = '1 Apr 2020 12:00:00 AM'.toDateTime(); dd.addSeconds(1); It return "Wed Apr 01 2020 00:00:01 GMT+0530 (India Standard Time)" dd.addSeconds(-1); It return "Tue Mar 31 2020 23:59:59 GMT+0530 (India Standard Time)" Download MYJS.js MyJs is a collection of java script extension methods that enhances the JavaScript objects, class object, DOM element, domElementsCollections, Date, String, Number and other data type.  Include in you project landing page (master page) and it will extends your DOM and JavaScript Objects.

javascript : Date.addMinutes(number)

  javascript : Date .addMinutes( Number ) Target: Applicable with  Date  Data Type. Description : Add/Subtract Minutes from Date and return new Date object. Syntax: Date .addMinutes( number ) Usase: var dd = '1 Apr 2020 12:00 AM'.toDateTime(); dd.addMinutes(1); It return "Wed Apr 01 2020 00:01:00 GMT+0530 (India Standard Time)" dd.addMinutes(-1); It return "Tue Mar 31 2020 23:59:00 GMT+0530 (India Standard Time)" Download MYJS.js MyJs is a collection of java script extension methods that enhances the JavaScript objects, class object, DOM element, domElementsCollections, Date, String, Number and other data type.  Include in you project landing page (master page) and it will extends your DOM and JavaScript Objects.

javascript : Date.addHours(number)

  javascript : Date .addHours( Number ) Target: Applicable with  Date  Data Type. Description : Add/Subtract hours from Date and return new Date object. Syntax: Date .addHours( number ) Usase: var dd = '1 Apr 2020 12:00 AM'.toDateTime(); dd.addHours(1); It return "Wed Apr 01 2020 01:00:00 GMT+0530 (India Standard Time)" dd.addHours(-1); It return "Tue Mar 31 2020 23:00:00 GMT+0530 (India Standard Time)" Download MYJS.js MyJs is a collection of java script extension methods that enhances the JavaScript objects, class object, DOM element, domElementsCollections, Date, String, Number and other data type.  Include in you project landing page (master page) and it will extends your DOM and JavaScript Objects.

javascript : String.toDate()

  javascript : String .toDate() Target: Applicable with  String  Data Type. Description : convert string to Date object. Date should be "dd-MMM-yyyy" or "dd-MM-yyyy" Note: In case of invalid date string it return "1-Jan-1900" Syntax: String .toDate() Usase: "11-Oct-2019".toDate() It return Date "Fri Oct 11 2019 00:00:00 GMT+0530 (India Standard Time)" "11/Oct/2019".toDate() It return Date "Fri Oct 11 2019 00:00:00 GMT+0530 (India Standard Time)" "11.Oct.2019".toDate() It return Date "Fri Oct 11 2019 00:00:00 GMT+0530 (India Standard Time)" "5Jun2019".toDate() It return Date "Wed Jun 05 2019 00:00:00 GMT+0530 (India Standard Time)" "15Jun".toDate() It return Date "Sat Jun 15 2019 00:00:00 GMT+0530 (India Standard Time)" "28, Jun".toDate() It return Date "Fri Jun 28 2019 00:00:00 GMT+0530 (India Standard Time)" "11, oct - 2019".to...

javascript : String.toNumber()

javascript : String .toNumber( [nanValue] ) Target: Applicable with  String  Data Type. Description : convert string to number. Syntax: String .toNumber( [nanValue] ) Note : string is NaN then it return (0) or passed value (nanValue) Usase: "55.25".toNumber() It return number 55.25 "10,500.50".toNumber() It return number 10500.5 "1,23,456.789".toNumber() It return number 123456.789 "132abcd".toNumber() It return number 123 "abcd132".toNumber() It return number 0 "abcd132".toNumber(-1) It return number -1 Download MYJS.js MyJs is a collection of java script extension methods that enhances the JavaScript objects, class object, DOM element, domElementsCollections, Date, String, Number and other data type.  Include in you project landing page (master page) and it will extends your DOM and JavaScript Objects.

javascript : String.toPascalCase()

  javascript : String .toPascalCase() Target: Applicable with  String  Data Type. Description : convert string to a single word in camel case format. Every words first letter in capital letter. Note: convert into PascalCase from camelCase, snake_case and kebab-case. Syntax: String .toPascalCase() Usase: " hello     how     are     you ? ".toPascalCase() It return string "HelloHowAreYou?" "hello-how-are-you-?".toPascalCase() It return string "HelloHowAreYou?" "hello_how_are_you_?".toPascalCase() It return string "HelloHowAreYou?" "helloHowAreYou?".toPascalCase() It return string "HelloHowAreYou?" Download MYJS.js Include in you project landing page (master page) and it will extends your DOM and JavaScript Objects.

javascript : String.toSnakeCase()

  javascript : String .toSnakeCase() Target: Applicable with  String  Data Type. Description : convert string to a single word in snake_case format. Every words separated by '_'. Note: convert into snake_case from PascalCase, camelCase and kebab-case. Syntax: String .toSnakeCase() Usase: " hello     how     are     you ? ".toSnakeCase() It return string "hello_how_are_you_?" "hello-how-are-you-?".toSnakeCase() It return string "hello_how_are_you_?" "helloHowAreYou?".toSnakeCase() It return string "hello_how_are_you_?" "HelloHowAreYou?".toSnakeCase() It return string "hello_how_are_you_?" Download MYJS.js Include in you project landing page (master page) and it will extends your DOM and JavaScript Objects.

javascript : String.toKebabCase()

  javascript : String .toKebabCase() Target: Applicable with  String  Data Type. Description : convert string to a single word in kebab-case format. Every words separated by '-'. Note: convert into kebab-case from PascalCase, snake_case and camel-case. Syntax: String .toKebabCase() Usase: " hello     how     are     you ? ".toKebabCase() It return string "hello-how-are-you-?" "helloHowAreYou?".toKebabCase() It return string "hello-how-are-you-?" "hello_how_are_you_?".toKebabCase() It return string "hello-how-are-you-?" "HelloHowAreYou?".toKebabCase() It return string "hello-how-are-you-?" Download MYJS.js Include in you project landing page (master page) and it will extends your DOM and JavaScript Objects.

Javascript : String.toCamelCase()

  Javascript : String .toCamelCase() Target: Applicable with  String  Data Type. Description : convert string to a single word in camel case format. Every words first letter in capital letter except first word. Note: convert into camelCase from PascalCase, snake_case and kebab-case. Syntax: String .toCamelCase() Usase: " hello     how     are     you ? ".toCamelCase() It return string "helloHowAreYou?" "hello-how-are-you-?".toCamelCase() It return string "helloHowAreYou?" "hello_how_are_you_?".toCamelCase() It return string "helloHowAreYou?" "HelloHowAreYou?".toCamelCase() It return string "helloHowAreYou?" Download MYJS.js Include in you project landing page (master page) and it will extends your DOM and JavaScript Objects.