Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Change date format

Hi Guys

How can u separate time in a date field table and also i need to separate months and year individual

Example : Now It's like 01/01/2014 , I want to change to Jan/2014.

Untitled.jpg

7 Replies
Anonymous
Not applicable
Author

Date(YourDateTime) will return date

Time(YourDateTime) will return time

Date(Today(),'MMM/YYYY') will return Month\Year format

MichaelTerenzi
Partner Ambassador
Partner Ambassador

Now It's like 01/01/2014 , I want to change to Jan/2014.  -----


For the above request, something like this will work for the date formatting:


MMM/YYYY h:mm:ss[.fff] TT



2014-09-22 16_35_23-List Box Properties [Date].png

Not applicable
Author

format pattern: mmm/yyyy

maxgro
MVP
MVP

floor(datatimefield) is your date part, example 41904

date(floor(datatimefield)) is your date part formatted as a date


frac(datatimefield) is the time part from 0 to 1

time(frac(datatimefield)) is the time part formatted


1.png


Not applicable
Author

Hi Prakash,

Just try like the below code

=Date( Makedate( right(fieldvalue,4), Mid(fieldvalue,4,2) ) , 'MMM/YYYY')

hope it helps!!

Kiru

Not applicable
Author

Hi guys,

thanks u for ur support

Not applicable
Author

hi

try this

DATE(date#(left(Date,19),'DD/MM/YYYY hh:mm:ss'),'MMM/YYYY') AS NEWDATE