displaying date only
-
I have a list that has a datetime field that is set with a format='DateOnly'. When I retrieve the list items using caml that field shows a time of 12:00:00 am. How can I get rid of the time?
-
I have a list that has a datetime field that is set with a format='DateOnly'. When I retrieve the list items using caml that field shows a time of 12:00:00 am. How can I get rid of the time?
-
when you say using CAML, is this code behind? VB/C#? Is it javascript or what? For your display, you have many options including functions if you use XSLT, Javascript, etc...
From MSDN:
Collaborative Application Markup Language (CAML) is an XML-based language that is used in Microsoft SharePoint Foundation to define the fields and views that are used in sites and lists.
Don't mean so sound like a troll, but I didn't know how to answer it any other way. Anyway, I ended up just throwing my result for the date column into a date object and then using that object's toshortdatestring method to display it correctly.
-
I have a list that has a datetime field that is set with a format='DateOnly'. When I retrieve the list items using caml that field shows a time of 12:00:00 am. How can I get rid of the time?
Did you try:
Type="DateTime" IncludeTimeValue="FALSE"
------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.
-
Did you try:
Type="DateTime" IncludeTimeValue="FALSE"
------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.
Yeah.