function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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