Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Version: sharepoint Online 365

I am having Date Field in DB . While i am retrieving in BCS Its showing as Datetime Format.

How can trim Time Value. I need to display in Date Format only .
How can i change? Please give me suggestions!!!

While i open my form In Sharepoint Designer :



XML
<query>
  <orderby>
    <fieldref name="ID" />
  </orderby>
</query>

    <viewfields>
         <fieldref name="JobNumber" />
         <fieldref name="JobName" />
	 <fieldref name="JobDescription" />
	 <fieldref name="StartDate" />
	 <fieldref name="EndDate" />
	 <fieldref name="JobStatus" />
	 <fieldref name="Comments" />
    </viewfields>



Please provide any camel changes or Some tips !!!
Posted
Updated 21-Jun-13 1:46am
v4

1 solution

Try this,
SQL
select cast(GETDATE() as DATE) as date_only from Table
 
Share this answer
 
Comments
Sarathkumar Nallathamby 21-Jun-13 6:59am    
Thanks for ur reply, Then How can I Intergrate that with CRUD Operation Using BCS. Is It possible to do edit operation Using this one. Please provide some detail about ur answer.

I asked in Sharepoint Bcs Not in Normal Sql or Procedure buddy..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900