Subodh Chettri
Subodh Chettri

Reputation: 599

DateTime Format

Currently I am using below code to get March 06. What do I do to get 06 March?

Text='<%# Bind("ToDate","{0:m}")%>'

Upvotes: 0

Views: 277

Answers (3)

Jeff Mercado
Jeff Mercado

Reputation: 134811

Either use a custom format string or use a different locale. If I'm reading the code right, here's a format string to give you the right string:

Text='<%# Bind("ToDate", "{0:dd MMMM}") %>'

I'm not sure how you'd use a different locale however. Someone else might have the answer to that.

Upvotes: 1

amit_g
amit_g

Reputation: 31250

Text='<%# Bind("ToDate","{0:dd MMM}")%>'

Upvotes: 0

Related Questions