# Column: EML/MSG (email files) columns

**URL:** <https://resource.dopus.com/t/column-eml-msg-email-files-columns/20780>\
**Category:** Buttons/Scripts\
**Tags:** script, commands, jscript\
**Created:** [June 23, 2015, 1:16am UTC](https://resource.dopus.com/t/column-eml-msg-email-files-columns/20780 "2015-06-23T01:16:43Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Julianon](https://resource.dopus.com/user_avatar/resource.dopus.com/julianon/32/25802_2.png) [@Julianon](https://resource.dopus.com/u/Julianon)\
**Post date:** [July 8, 2015, 3:29am UTC](https://resource.dopus.com/t/column-eml-msg-email-files-columns/20780/7 "2015-07-08T03:29:27Z")

</div>

DATES SOLVED: After reading [Item date that is parse-able by js](https://resource.dopus.com/t/item-date-that-is-parse-able-by-js/20761/1), and then reading the URL that playful gives there in his initial post, I realised, with some embarrassment, that the "awkward" form of the date conforms to the ECMA standard and can be read in directly by the Date object. I then added, immediately after line 92, the following lines:

```javascript
  FileDate = new Date (results[config.columns[3].name])
  TheText = new String ("")
  if (FileDate.getDate()<10) 
  	TheText += 0
  TheText += FileDate.getDate() + "/"
  if (FileDate.getMonth()<9) 
	TheText += 0
  TheText += 1 + FileDate.getMonth() + "/"
  TempYear = new String (FileDate.getYear())
  TheText += TempYear.substr(2,2) + " "
  if (FileDate.getHours()<10) 
	TheText += 0
  TheText += FileDate.getHours() + ":"
  if (FileDate.getMinutes()<10) 
	TheText += 0
  TheText += FileDate.getMinutes() 
  results[config.columns[3].name] = TheText 

```

The result is that the dates now have the desired form 01/06/14 09:19.

Wowbagger, I am a complete beginner with JScript and with objects, and that's the best I can do for now (in particular, I've ignored the date object provided by DOpus), so I won't presume to attempt any update of the script. Also, you may want to add into "Configure" some option to format the date according to the Windows Default.

I still have no idea what is going on with my third and fourth comments in the previous posts.

---

_[View the full topic](https://resource.dopus.com/t/column-eml-msg-email-files-columns/20780)._
