Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > formatting date time

Reply
Thread Tools

formatting date time

 
 
mark
Guest
Posts: n/a
 
      08-26-2004
i can format dates without a problem like - {0:dd/MM/yyyy}
how can i add just the hour and minutes as well ? eg 26/08/2004 11:39 (24hr)

thanks

mark



 
Reply With Quote
 
 
 
 
Mark Rae
Guest
Posts: n/a
 
      08-26-2004
"mark" <(E-Mail Removed)> wrote in message
news:05jXc.21$(E-Mail Removed)...

> i can format dates without a problem like - {0:dd/MM/yyyy}
> how can i add just the hour and minutes as well ? eg 26/08/2004 11:39

(24hr)

hh or HH = hours
mm = minutes


 
Reply With Quote
 
 
 
 
Shiva
Guest
Posts: n/a
 
      08-26-2004
Hi,

Use {0:dd/MM/yyyy HH:mm}

"mark" <(E-Mail Removed)> wrote in message
news:05jXc.21$(E-Mail Removed)...
i can format dates without a problem like - {0:dd/MM/yyyy}
how can i add just the hour and minutes as well ? eg 26/08/2004 11:39 (24hr)

thanks

mark




 
Reply With Quote
 
mark
Guest
Posts: n/a
 
      08-26-2004

"Mark Rae" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> "mark" <(E-Mail Removed)> wrote in message
> news:05jXc.21$(E-Mail Removed)...
>
> > i can format dates without a problem like - {0:dd/MM/yyyy}
> > how can i add just the hour and minutes as well ? eg 26/08/2004 11:39

> (24hr)
>
> hh or HH = hours
> mm = minutes
>

cool thanks!



 
Reply With Quote
 
mark
Guest
Posts: n/a
 
      08-26-2004

"Shiva" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> Use {0:dd/MM/yyyy HH:mm}
>
> "mark" <(E-Mail Removed)> wrote in message
> news:05jXc.21$(E-Mail Removed)...
> i can format dates without a problem like - {0:dd/MM/yyyy}
> how can i add just the hour and minutes as well ? eg 26/08/2004 11:39

(24hr)
>
> thanks
>
> mark
>

thanks - working good now

mark


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
w3.org suggestion .. page, date, time and topic, date, time code (wish list). Keith Cochrane HTML 2 08-06-2006 06:57 AM
covert time from date Hour min sec format to epoch time i.e time since 1 jan 1970 in C Summu82 C Programming 5 06-07-2006 02:51 PM
Date, date date date.... Peter Grison Java 10 05-30-2004 01:20 PM
Date & Time chooser for java 1.1 - using only the mouse to select time & date Chris Berg Java 0 10-27-2003 10:59 PM
Formatting a time field to 24 hour time (Military time) in the Datagrid David Hearn ASP .Net Datagrid Control 1 09-10-2003 02:50 PM



Advertisments