Silverfrost Forums

Welcome to our forums

Printing a date_and_time

2 Aug 2014 12:28 #14387

Hello I try to print the Date and Time in this format.

Sat Aug 02, 2014 17:54:55

I have tried date_and_time(), but the values[] shows only integer values of the date and time, not in the above format.

Any function available to do or convert the above to do this? (tried ToFDate@(), but some errors)..

Pls. help

2 Aug 2014 12:52 #14388

Look up the section 'Time and Date Routines' in the manual. For example,

character(len=23) :: fdate@,time@
...
write(*,*)fdate@()//','//time@()
3 Aug 2014 8:41 #14391

Thanks a lot mecej4. Its perfect now. Thank you

Please login to reply.