+ Start a Discussion
PRepakaPRepaka 

how to retrieve the time from the CreatedDate field of an SObject.

hi

 

I am retrieving the CreatedDate from Contact object in S-control. but i am getting only date from CreatedDate field. but in database Createddate is stored as in datetime format. but in S-control i am getting only date.

 

<html>
<head>
<script type="text/javascript">
function X()

 

alert({!Contact.CreatedDate});

}

</script>
</head>
<body onload="X();">
</body>
</html>

 

Please help me.

ArtabusArtabus

You won't be able through a merge field, try querying the value using the ajax toolkit

You are right, it is in fact a datetime value