M-Files Community
Search
?
User
Site
Search
User
News & Announcements
Company News
Product News
Customer Success News
Learning Resources News
Forums
Best Practices
General Topics
API
Clients
Server Configuration
M-Files Hubshare
M-Files Aino
Learning Resources
Product
New M-Files Desktop
M-Files & Microsoft
M-Files Aino
M-Files AI Capabilities
M-Files Use Cases
M-Files Business Platform Edition
M-Files Add-Ons
Services
Managed & Expert Services
Cloud Services
Product Support
Customer Advocacy
Contact Us
More
Cancel
Forums
Clients
Date Format Change
Best Practices
General Topics
API
Clients
Server Configuration
M-Files Hubshare
M-Files Aino
More
Cancel
Options
Share
More
Cancel
Locked
Locked
Replies
12 replies
Subscribers
9 subscribers
Views
1535 views
Users
0 members are here
Related
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
Date Format Change
jdillon
over 8 years ago
Is there a way to change the date format from the default of MM/DD/YYYY to DD/MMM/YYYY, example being today's date of 18NOV2016?
Cheers.
Parents
Former Member
over 8 years ago
Use Calculated value with vbscript sth like this:
-----------------------------
Option Explicit
' Get Document date.
Dim szDatums
szDatums = PropertyValues.SearchForProperty( 1185 ).TypedValue.DisplayValue
Dim szMonth
szMonth = MONTH(szDatums)
Dim szYear
szYear = YEAR(szDatums)
' Create title.
Dim szName
szName = "MyReport - " & szYear & "." & szMonth
' Set result.
Output = szName
------------------------------
Cancel
Vote Up
0
Vote Down
Cancel
Reply
Former Member
over 8 years ago
Use Calculated value with vbscript sth like this:
-----------------------------
Option Explicit
' Get Document date.
Dim szDatums
szDatums = PropertyValues.SearchForProperty( 1185 ).TypedValue.DisplayValue
Dim szMonth
szMonth = MONTH(szDatums)
Dim szYear
szYear = YEAR(szDatums)
' Create title.
Dim szName
szName = "MyReport - " & szYear & "." & szMonth
' Set result.
Output = szName
------------------------------
Cancel
Vote Up
0
Vote Down
Cancel
Children
No Data