Posts

Showing posts with the label parse

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 : 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.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 : Date.addYears(number)

  javascript : Date .addYears( Number ) Target: Applicable with  Date  Data Type. Description : Add/Subtract years from Date and return new Date object. Syntax: Date .addYears( number ) Usase: var dd = '1 Apr 2020'.toDateTime(); dd.addYears(1); It return "Thu Apr 01 2021 00:00:00 GMT+0530 (India Standard Time)" dd.addYears(-1); It return "Mon Apr 01 2019 00: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.