Date Formating

Steven Schveighoffer schveiguy at yahoo.com
Tue Dec 12 20:53:38 UTC 2017


On 12/12/17 10:56 AM, Vino wrote:
> Hi All,
> 
>    Request out help on date formatting, I have code which output the 
> date and time as below , i we need it without the last few numbers.,ie 
> "YYYY-MMM-DD HH:MM:SI"
> 
> Output : 2017-Sep-06 16:06:42.7223837
> Required Output : 2017-Sep-06 16:06:42
> 

You need to extract the date components and print them separately. There 
is no mechanism to format a SysTime (and it's a hairy subject to be 
sure, every locale is different).

-Steve


More information about the Digitalmars-d-learn mailing list