SIEBEL: DateTime Conversion Format


/* 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


Categories: Siebel

1 reply

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

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: