我需要自定义格式日期。在ruby中,我会使用strftime或字符串格式化的时间来完成此操作。 now = Time.new
now.strftime '%a, %d of %b' #=> "Sat, 27 of Jun"
javascript是否使用strftime或一些等效?我怎样才能在JavaScript中获得类似的效果?
我用下面的代码后,解决strptime()问题: data['Input_volTargetStart'][1]>time.strptime(data['Dates'][1], "%d %b $y")
当我尝试运行它,我得到这个错误: ValueError: time data '04-Jun-99' does not match format '%d %b $y' 我尝试了所有可能的组合,但