crmTech/ October 3, 2013/ Siebel/ 1 comments

/* Getting Date and Time in format in MM/DD/YYYY HH:MM:SS */

var sGetInstallDateTime = ((sInstallDate.getMonth() + 1) + "/" + sInstallDate.getDate() +
 "/" + sInstallDate.getFullYear()+ " "+ sInstallDate.getHours() + ":" +
 sInstallDate.getMinutes()+":" + sInstallDate.getSeconds());

/* Getting Date and Time in format MM/DD/YYYY .*/       

 var sInstallOnlyDate = ((sInstallDate.getMonth() + 1) + "/" + sInstallDate.getDate() + "/" + sInstallDate.getFullYear());

/*Getting DateTime in Millisec. Here formula is used DAYS*24*60*60*1000 for miliisec conversion */

sInstallDateMilliSec = sInstallDate.getTime(); //Converting date into millisec for one day

sysDateMilliSec = sysDate.getTime() + 31*24*60*60*1000;//Converting Date to millisec by adding 31 days for future 31 days count.

Advertisements
Share this Post

About crmTech

Sharad is working from more than 11 years in IT industry. He has giving his technical services in CRM for telecom, automobile, retail, finance industry in Sales, Service and Marketing. He has primary skill in Siebel and Salesforce Marketing Cloud. Apart from this he has worked in Google Cloud, Wordpress blogging, SEO optimization, Short film making, mobile apps creation,logo design creation for his own interest.

1 Comment

  1. Hi
    How to change Sunday, June 7, 2015/11:26:40 AM AST this format to MM/DD/YYYY HH:MM:SS */

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.