set date to iso format in sharepoint through the GUI - sharepoint

in sharepoint can i use calculated value on a date field to set the format of a date?
eg i want to set a date field to ISO format

You can do that with the TEXT() function in your calculated field, like this:
TEXT([NAMEOFYOURDATEFIELD],"yyyy-mm-dd")

Related

How to customize SOQL date format

When i select the data from salesforce using the SOQL, am getting the date format as 'YYYY-MM-DDThh:mm:ss-hh:mm' for a date column.
How cam we customize this date value to this format 'YYYY-MM-DD HH24:MI:SS' ?
You can't apply arbitrary formatting to date-time results in SOQL. By default, you'll receive the ISO8601 format shown in your question.
You may request a formatted date using the FORMAT() SOQL function. The result is
When the FORMAT function is applied these fields reflect the appropriate format for the given user locale. The field format matches what appears in the Salesforce Classic user interface. For example, the date December 28, 2015 can appear numerically as 2015-12-28, 28-12-2015, 28/12/2015, 12/28/2015, or 28.12.2015, depending on the org’s locale setting.
You cannot supply a locale or date format to this function. If you need a format other than the user locale, perform this transformation in your client application.

Acumatica Report Writer extract date from date time field

In Acumatica advanced report writer i have a date parameter but when i print this it shows in DD/MM/YYYY HH:MM:SS format. What is the format syntax so it only shows the date in DD/MM/YYYY format?
Thanks
Use the report designer format field:
Date format syntax is from .Net Framework:
custom date and time format strings
If you need a hardcoded format (with slashes) use 'dd/MM/yyyy'.
If you only want the short date format (date without time) use 'd'.
I would pick 'd' format if all you want is to remove time because it will follow the culture and still provide a short date.
Example: 'MM-dd-yyyy' or 'dd/MM/yyyy' etc...

How do I convert 021602 to be a date 02/16/02 in excel 2010?

I have a excel 2010 spreadsheet with a column that has numbers which represent a specific date in the following format 021602, but I need to convert it to 02/16/2002.
First convert your string to a good looking date, then use the datevalue function to turn it into an actual date.
=datevalue(left(a1,2)&"/"&mid(a1,3,2)&"/"&right(a1,2))
021602 is not a number, inside Excel, it is probably a string.
datevalue(), as it has already been pointed out, is region-depedent.
text() returns a string, but returning a date is usually a better practice.
if the input is K7, then:
=DATE(RIGHT(K7,2)+2000,MID(K7,LEN(K7)-3,2),LEFT(K7,2-6+LEN(K7)))
=text(date(right(a1,2),mid(a1,3,2),left(a1,2)),"mm/dd/yyyy")
Datevalue depends on your system date setting. If your system is set to UK date format, you'll not be able to convert it successfully.

Excel Date and Time format

I am having trouble with datetime format. I used custom format in order to get my data to read as 01/02/2016 05:33:23. But instead it is reading as 42401 05:33:23.
Any ideas on how to get it to work?
Thanks
If you are simply wanting to set a range to this format just go into the Format option once the range is highlighted; then select "More Number Formats". At the bottom is a "Custom" option, in the entry box type the following:
dd/mm/yyyy hh:mm:ss
That should be the correct format setting.

How to get Date and current time from the Date/Time column in SharePoint Custom list

I have column called "Date Submitted" as Date/time in one of the Custom list in sharepoint 2007.
it always set to today's date and 12AM time instead of that I want to display today's date with current time hh:mm:ss.
I tried creating calculated column TestDate and formula is : =TEXT(([Date Submitted]),"mm dd yyyy h:MM:SS")
result is 04 28 2010 0:00:00 I wanted to be 04/28/2010 10:50:34
Is it possible to achive this?
Thank you
kanta
try to put =NOW() in the default value field in the column properties
In the definition of Date Submitted, is the Date and Time Format currently Date Only? If so, try changing it to Date & Time.
For something like this, I ended up creating a custom action which is called from a workflow.
A few ideas to get you started :-
Can you use the Created date instead - it will always be set to the exact time the record was created?
When entering a new item on the Calendar list it defaults to the current time - could you make your list from a modified Calendar list rather than the Custom list?
I've written a blog post about how you can use a JavaScript hack to set the default duration for a new calendar record - you could modify this to use with a Custom list and to set the field to the current time.
Setting a default duration for new calendar events
You could write your own custom field type
SharePoint 2007 Custom Date Time Field to default the time to the current time
Codeplex - custom date time field
=TEXT([DateFiled Here],"mm/dd/YYYY hh:mm:ss ")
Here's how to do what you want:
=TEXT(Today,"mm/dd/YYYY")&" "&TEXT(Now(),"h:mm:ss")

Resources