I am using the following code
Eval("EventDate", "{0:d}")
This returns 1/4/2011
I need it to return “4” just the day. But if I do this
Eval("EventDate", "{0: d}")
It returns ” 4″ note the space, this is causing problems is there anyway to just get the day number without that space.
Thanks
You should be able to do this using
Eval("EventDate", "{0:%d}"). The%indicates that this is a custom format string.