# Format date in dateformat/parsedate

**URL:** https://forum.servoy.com/t/format-date-in-dateformat-parsedate/17024
**Category:** Classic Servoy
**Created:** [February 15, 2013, 9:22am UTC](https://forum.servoy.com/t/format-date-in-dateformat-parsedate/17024 "2013-02-15T09:22:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![robrecht](https://avatars.discourse-cdn.com/v4/letter/r/a9adbd/32.png) [@robrecht](https://forum.servoy.com/u/robrecht)
#### Post date: [February 15, 2013, 9:22am UTC](https://forum.servoy.com/t/format-date-in-dateformat-parsedate/17024/1 "2013-02-15T09:22:15Z")

</div>

Hi,

I try to convert a datestring

```auto
utils.parseDate('Fri Feb 15 00:00:00:00 CET 2013','EEE MMM d HH:mm:ss z yyyy'))

```

This returns null

I found out that the problem is that ‘Fri’ is not recognized as a day in Dutch.  
When I do the dateformat

```auto
utils.dateFormat(_today,'EEE MMM d HH:mm:ss z yyyy')

```

It returns a date in Dutch…

I tried to reset locale settings default to en,BE but it didn’t change anything…

Any help on this?  
(This occurs in developer, didn’t test it on a server yet)

thanks

---

<div class="post-metadata">

### Author: ![robwormald](https://avatars.discourse-cdn.com/v4/letter/r/bcef8e/32.png) [@robwormald](https://forum.servoy.com/u/robwormald)
#### Post date: [February 18, 2013, 7:44pm UTC](https://forum.servoy.com/t/format-date-in-dateformat-parsedate/17024/2 "2013-02-18T19:44:17Z")

</div>

2 things I see on my end, I’m in a US locale so it might not be relevant :

1 - you’ve got a trailing parenthesis in your posted code. I realize you probably know that already.

2 - Your string has hours, minutes, seconds and milliseconds but your format doesn’t have milliseconds.

If I try to parse your string as such (note the :SS ) :

```auto
utils.parseDate('Fri Feb 15 00:00:00:00 CET 2013','EEE MMM dd HH:mm:ss:SS z yyyy')

```

outputs → Thu Feb 14 17:00:00 CST 2013
