Separate Date and Time field to get just Time value

vtred
Tera Contributor

Hi All,

I have a Field: Start Date which is a Date Time type. I need a way to separate the Date from time and get just Time value from the field

Am writing the script in Business rules.

Any input will help me solve the issue.

Thanks,

Vtred

7 REPLIES 7

vtred
Tera Contributor

Perfect, This worked Shishir. thank you for response


Hi Vt,



Please mark the answer correct to move the thread out from unanswered list.


Mery
Kilo Contributor

Hello!

 

Once you get the time, how can I compare with something like "10:00:00"? I have tried == and  indexof but it is not working 😞

var res = current.u_start_date;

 

var strTime = res.split(' ');

 

var time= strTime [1];

Thanks!!