Use the moment library as below <script src=”https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js”></script> let nextMonth = formatDateObj.clone().add(i, ‘months’); nextMonth.format(‘DD/MM/YYYY’); Suppose if the current date is 29/12/2023 Next date will be as per above code is 29/01/2024
Tag: html
You don’t need JavaScript for that
The rule of least power It’s one of the core principles of web development and it means that you should Choose the least powerful language suitable for a given purpose. On the web this means preferring HTML over CSS, and then CSS over JS. JS is the most versatile language out of the three because you’re… Continue reading You don’t need JavaScript for that
Add font-awesome cdn to display icons in Vue js
Open index.html file and add given code Sample html code to display a sample icon
Suitelet Script sample that renders an HTML file from the NetSuite File Cabinet:
Improve the quality of the captured image through HTML
We can follow the below steps to Higher Video Resolution: Improved the resolution of the video feed by specified the width and height properties. Canvas Size: Made the canvas element (<canvas>) has the same dimensions as the video feed to avoid any scaling issues. You can set the canvas size dynamically based on the video… Continue reading Improve the quality of the captured image through HTML
Install and use PrimeFlex CSS utility library in Vue project.
Run the following command in your command line. Add provided code in main.js To use PrimeFlex classes, consider the font size need to be changed. ‘text-xs’ is a PrimeFlex property with font-size: .75rem;
How to remove the blue highlight of button on mobile?
When trying to create buttons, links or input fields using latest development technologies like next js, react and angular etc there might be some times a default background color may appear. This can cause bugs for the developed website since they create a different background color different from the mockup. As solution we can use… Continue reading How to remove the blue highlight of button on mobile?
Suitelet script to capture the image
Created an external suitelet page that can be navigated from the WMS app. In the suitelet page, we can create an element that opens the camera and capture the image. The captured image can be sent to the NetSuite file cabinet. We can achieve this with the help of an HTML page and attached the… Continue reading Suitelet script to capture the image
Deprecation of HTML Code in Saved Search Formula (Text) Fields
Deprecation of HTML Code in Saved Search Formula (Text) Fields