Posts

Showing posts with the label Date to String format

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

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

javascript : Date.addDays(number)

  javascript : Date .addDays( Number ) Target: Applicable with  Date  Data Type. Description : Add/Subtract days from Date and return new Date object. Syntax: Date .addDays( number ) Usase: var dd = '1 Apr 2020'.toDateTime(); dd.addDays(5); It return "Mon Apr 06 2020 00:00:00 GMT+0530 (India Standard Time)" dd.addDays(-5); It return "Fri Mar 27 2020 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.

javascript : Date.format(strFormat)

  javascript : Date .format( strFormat ) Target: Applicable with  Date  Data Type. Description : format Date to string with given format string. strFormat Description dddd  : full week day name as ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] ddd  : three letter week day name as ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"] dd  : two digit date of month prefix with zero. d  : date of month without prefix with zero. MMMM  : full month name as ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]. MMM  : three letter month name as ["Jan", "Feb", "Mar", "Apr", "May", "Jun...