CSharp examples for System:DateTime Format
Formats the given with the Date Time Pattern uses: YYYYMMdd HH:mm:ss
using System;/*from w w w . ja va 2 s . c om*/ public class Main{ /// <summary> /// Formats the given <paramref name="dateTime"/> with the DateTimePattern SoundCloud uses: /// YYYY/MM/dd HH:mm:ss /// </summary> /// <param name="dateTime">Datetime to format</param> /// <returns>Formatted string</returns> internal static string ToSoundCloudString(this DateTime dateTime) { return dateTime.ToString(Settings.SoundCloudDateTimePattern); } }