Home > DotNetnuke > dd/MM/yyyy in DotNetNuke

dd/MM/yyyy in DotNetNuke

It’s not easy formating datetime in dd/MM/yyyy in DotNetNuke ( in XModPro Module Form ). Finally I could do that with setting culture to fr-FR (France). I’ve got this clue from somewhere in the internet that I’ve forgot where the address is. Here is the complete code:

<div class=”xmp-form-row”>
<Label CssClass=”xmp-form-label NormalBold” For=”BirthDate”>
Tanggal Lahir
</Label>
<DateInput Id=”BirthDate” DataField=”BirthDate” DataType=”datetime” Format=”dd/MM/yyyy” culture=”fr-FR”>
</DateInput>
<CalendarImage ImageUrl=”~/DesktopModules/XModPro/images/calendar.jpg” Style=”margin-left:5px;” Target=”BirthDate” Format=”dd/MM/yyyy”>
</CalendarImage>
</div>

Categories: DotNetnuke Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: