# Class return

**URL:** <https://forum.kirupa.com/t/class-return/297840>\
**Category:** flash\
**Created:** [October 9, 2009, 2:10am UTC](https://forum.kirupa.com/t/class-return/297840 "2009-10-09T02:10:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mauroluz](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@mauroluz](https://forum.kirupa.com/u/mauroluz)\
**Post date:** [October 9, 2009, 2:10am UTC](https://forum.kirupa.com/t/class-return/297840/1 "2009-10-09T02:10:30Z")

</div>

Hello,

I have a question about return…

example:

```auto
var date: Date = new Date();
trace (date)//Thu Oct 8 23:05:51 GMT-0300 2009

```

How i can get a String return by a Class? The default return with a normal Class is ([object Date])… Constructor can`t return values… how i can make that? 😛

Thanks and sorry for my sux english…
