hi,
i have a function that return a date using this: d.ymd('-');

this return 2010-08-27 but i need other format like this:
27-08-2010
i have try d.dmy but i receive this error: d.dmy is not a function
what is the correct format for receive the date is other format?
thanks a lot for your help
:)

What class is this: d.ymd ? Did you write it. How do you expect to call d.dmy if such method doesn't exist.

Look at the API of java.text.SimpleDateFormat, for formatting Date objects to Strings

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.